mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Close yet another race condition in replication slot test code
Buildfarm shows that this test has a further failure mode when a
checkpoint starts earlier than expected, so we detect a "checkpoint
completed" line that's not the one we want. Change the config to try
and prevent this.
Per buildfarm
While at it, update one comment that was forgotten in commit
d18e75664a
.
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20210729.162038.534808353849568395.horikyota.ntt@gmail.com
This commit is contained in:
@ -9329,7 +9329,7 @@ CreateCheckPoint(int flags)
|
||||
if (!RecoveryInProgress())
|
||||
TruncateSUBTRANS(GetOldestTransactionIdConsideredRunning());
|
||||
|
||||
/* Real work is done, but log and update stats before releasing lock. */
|
||||
/* Real work is done; log and update stats. */
|
||||
LogCheckpointEnd(false);
|
||||
|
||||
/* Reset the process title */
|
||||
|
Reference in New Issue
Block a user