1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Improve archive-push WAL segment queue handling.

Infer the size of all WAL segments from the size of the first segment rather than getting info for all segments (up to queue size). If the segments are not the same size then there are larger issues than the WAL queue.
This commit is contained in:
David Steele
2024-03-08 12:34:11 +13:00
committed by GitHub
parent 4387250f2e
commit cf17515e40
3 changed files with 23 additions and 16 deletions
@@ -90,6 +90,9 @@ testRun(void)
TEST_RESULT_BOOL(
archivePushDrop(STRDEF("pg_wal"), archivePushProcessList(STRDEF(TEST_PATH "/db/pg_wal"))), true, "wal is dropped");
// No WAL to be processed
TEST_RESULT_BOOL(archivePushDrop(STRDEF("pg_wal"), strLstNew()), false, "no WAL to be processed");
}
// *****************************************************************************************************************************