mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix WAL file cutoff point calculation in pg_standby.
Patch by Simon Riggs, per bug report from Ferenc Felhoffer
This commit is contained in:
@ -320,7 +320,7 @@ SetWALFileNameForCleanup(void)
|
|||||||
if (seg_diff > seg)
|
if (seg_diff > seg)
|
||||||
{
|
{
|
||||||
log_diff++;
|
log_diff++;
|
||||||
seg = MaxSegmentsPerLogFile - seg_diff;
|
seg = MaxSegmentsPerLogFile - (seg_diff - seg);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
seg -= seg_diff;
|
seg -= seg_diff;
|
||||||
|
Reference in New Issue
Block a user