projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce9bae2
)
Preserve commit timestamps across clean restart
author
Alvaro Herrera
<
[email protected]
>
Mon, 24 Oct 2016 12:27:24 +0000
(09:27 -0300)
committer
Alvaro Herrera
<
[email protected]
>
Mon, 24 Oct 2016 12:38:28 +0000
(09:38 -0300)
An oversight in setting the boundaries of known commit timestamps during
startup caused old commit timestamps to become inaccessible after a
server restart.
Author and reporter: Julien Rouhaud
Review, test code: Craig Ringer
src/backend/access/transam/commit_ts.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/commit_ts.c
b/src/backend/access/transam/commit_ts.c
index a284894862b932e2736c72ab36a6d722189c187f..38dba8cef410dbdf13406bcd6ceac3a8163c7315 100644
(file)
--- a/
src/backend/access/transam/commit_ts.c
+++ b/
src/backend/access/transam/commit_ts.c
@@
-842,6
+842,8
@@
SetCommitTsLimit(TransactionId oldestXact, TransactionId newestXact)
else
{
Assert(ShmemVariableCache->newestCommitTsXid == InvalidTransactionId);
+ ShmemVariableCache->oldestCommitTsXid = oldestXact;
+ ShmemVariableCache->newestCommitTsXid = newestXact;
}
LWLockRelease(CommitTsLock);
}