mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-28 16:57:20 +02:00
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
This commit is contained in:
parent
a66b05b422
commit
efe169c900
@ -304,6 +304,7 @@ main(int argc, char **argv)
|
|||||||
"but was not the same version as %s.\n"
|
"but was not the same version as %s.\n"
|
||||||
"Check your installation.",
|
"Check your installation.",
|
||||||
"pg_waldump", full_path, "pg_verifybackup");
|
"pg_waldump", full_path, "pg_verifybackup");
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user