mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Ensure no xid gaps during Hot Standby startup
In some cases with higher numbers of subtransactions it was possible for us to incorrectly initialize subtrans leading to complaints of missing pages. Bug report by Sergey Konoplev Analysis and fix by Andres Freund
This commit is contained in:
@ -5391,6 +5391,9 @@ StartupXLOG(void)
|
||||
oldestActiveXID = checkPoint.oldestActiveXid;
|
||||
Assert(TransactionIdIsValid(oldestActiveXID));
|
||||
|
||||
/* Tell procarray about the range of xids it has to deal with */
|
||||
ProcArrayInitRecovery(ShmemVariableCache->nextXid);
|
||||
|
||||
/*
|
||||
* Startup commit log and subtrans only. Other SLRUs are not
|
||||
* maintained during recovery and need not be started yet.
|
||||
|
Reference in New Issue
Block a user