Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix check_archive_ready for version 10 and above
The archive_ready check uses the wal_files check with dedicated options - however, since wal_files was fixed for version 10 in 8e6b3c2 it called pg_ls_waldir() even for the archive_ready check which is not appropriate as this only lists files in pg_wal and not in pg_wal/archive_status. This change makes the wal_files check call pg_ls_archive_statusdir() instead if $extrabit (i.e. .ready) is set, fixing issue #150.
- Loading branch information