mirror of
https://github.com/postgres/postgres.git
synced 2026-04-29 10:11:47 -04:00
Preserve commit timestamps across clean restart
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
This commit is contained in:
parent
ce9bae2261
commit
7a2fa5774a
1 changed files with 2 additions and 0 deletions
|
|
@ -842,6 +842,8 @@ SetCommitTsLimit(TransactionId oldestXact, TransactionId newestXact)
|
|||
else
|
||||
{
|
||||
Assert(ShmemVariableCache->newestCommitTsXid == InvalidTransactionId);
|
||||
ShmemVariableCache->oldestCommitTsXid = oldestXact;
|
||||
ShmemVariableCache->newestCommitTsXid = newestXact;
|
||||
}
|
||||
LWLockRelease(CommitTsLock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue