mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Refactor GetOldestXmin() to use flags
Replace ignoreVacuum parameter with more flexible flags. Author: Eiji Seki Review: Haribabu Kommi
This commit is contained in:
@ -8895,7 +8895,7 @@ CreateCheckPoint(int flags)
|
||||
* StartupSUBTRANS hasn't been called yet.
|
||||
*/
|
||||
if (!RecoveryInProgress())
|
||||
TruncateSUBTRANS(GetOldestXmin(NULL, false));
|
||||
TruncateSUBTRANS(GetOldestXmin(NULL, PROCARRAY_FLAGS_DEFAULT));
|
||||
|
||||
/* Real work is done, but log and update stats before releasing lock. */
|
||||
LogCheckpointEnd(false);
|
||||
@ -9258,7 +9258,7 @@ CreateRestartPoint(int flags)
|
||||
* this because StartupSUBTRANS hasn't been called yet.
|
||||
*/
|
||||
if (EnableHotStandby)
|
||||
TruncateSUBTRANS(GetOldestXmin(NULL, false));
|
||||
TruncateSUBTRANS(GetOldestXmin(NULL, PROCARRAY_FLAGS_DEFAULT));
|
||||
|
||||
/* Real work is done, but log and update before releasing lock. */
|
||||
LogCheckpointEnd(true);
|
||||
|
Reference in New Issue
Block a user