Skip to content

Commit 2ad98fd

Browse files
committed
Add missing exit() in pg_verifybackup when failing to find pg_waldump
pg_verifybackup needs by default pg_waldump to check after a range of WAL segments required for a backup, except if --no-parse-wal is specified. The code checked for the presence of the binary pg_waldump in an installation and reported an error, but it forgot to properly exit(). This could lead to confusing errors reported. Reviewed-by: Robert Haas, Fabien Coelho Discussion: https://postgr.es/m/YQDMdB+B68yePFeT@paquier.xyz Backpatch-through: 13
1 parent 245de48 commit 2ad98fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_verifybackup/pg_verifybackup.c

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ main(int argc, char **argv)
304304
"but was not the same version as %s.\n"
305305
"Check your installation.",
306306
"pg_waldump", full_path, "pg_verifybackup");
307+
exit(1);
307308
}
308309
}
309310

0 commit comments

Comments
 (0)