mirror of
https://github.com/postgres/postgres.git
synced 2025-06-18 00:02:37 -04: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:
parent
a4845efaab
commit
6280789e05
@ -320,7 +320,7 @@ SetWALFileNameForCleanup(void)
|
||||
if (seg_diff > seg)
|
||||
{
|
||||
log_diff++;
|
||||
seg = MaxSegmentsPerLogFile - seg_diff;
|
||||
seg = MaxSegmentsPerLogFile - (seg_diff - seg);
|
||||
}
|
||||
else
|
||||
seg -= seg_diff;
|
||||
|
Loading…
x
Reference in New Issue
Block a user