mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-24 05:16:39 +02:00
9d3a605900
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.