Revert the fix to allegedly inaccurate comment.

I misread the code. It does indeed only call checkpoint() every 10
segments. Revert that change, but keep the rest of the comment fixes.
This commit is contained in:
Heikki Linnakangas
2021-07-10 18:53:47 +03:00
parent 19528de03e
commit bfc27bee5e
2 changed files with 2 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ fn walreceiver_main(
// flush ptr.
timeline.advance_last_valid_lsn(endlsn);
// Somewhat arbitrarily, if we have at least one complete wal segment (16 MB each),
// Somewhat arbitrarily, if we have at least 10 complete wal segments (16 MB each),
// "checkpoint" the repository to flush all the changes from WAL we've processed
// so far to disk. After this, we don't need the original WAL anymore, and it
// can be removed. This is probably too aggressive for production, but it's useful