Checkpoint more often, to generate more snapshot files.

This should help make bugs more shallow.
This commit is contained in:
Heikki Linnakangas
2021-07-10 19:05:48 +03:00
parent df3e403967
commit 3b84975ca9

View File

@@ -254,7 +254,7 @@ fn walreceiver_main(
tenantid,
)?;
if newest_segno - oldest_segno >= 10 {
if newest_segno - oldest_segno >= 1 {
timeline.checkpoint()?;
// TODO: This is where we could remove WAL older than last_rec_lsn.