mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
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:
@@ -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
|
||||
|
||||
2
vendor/postgres
vendored
2
vendor/postgres
vendored
Submodule vendor/postgres updated: 8478beabaf...a08f50cba2
Reference in New Issue
Block a user