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

Optimize WAL segment check after successful backup.

The prior code did one list command against the storage for each WAL segment. This led to a lot of lists and was especially inefficient when the WAL (or the majority of it) was already present.

Optimize to keep the contents of a WAL directory and use them on a subsequent search. Leave the optimizations for a single WAL segment since other places still use that mode.
This commit is contained in:
David Steele
2023-09-10 12:45:58 -04:00
committed by GitHub
parent edbd520c81
commit 9d3a605900
12 changed files with 376 additions and 92 deletions
+1
View File
@@ -795,6 +795,7 @@ unit:
coverage:
- command/archive/common
- command/archive/find
# ----------------------------------------------------------------------------------------------------------------------------
- name: archive-get