diff options
Diffstat (limited to 'src/bin/pg_basebackup/walmethods.c')
-rw-r--r-- | src/bin/pg_basebackup/walmethods.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/pg_basebackup/walmethods.c b/src/bin/pg_basebackup/walmethods.c index 1e0ff760eba..acd242d2c99 100644 --- a/src/bin/pg_basebackup/walmethods.c +++ b/src/bin/pg_basebackup/walmethods.c @@ -1195,9 +1195,8 @@ tar_close(Walfile f, WalCloseMethod method) if (tar_sync(f) < 0) { /* XXX this seems pretty bogus; why is only this case fatal? */ - pg_log_fatal("could not fsync file \"%s\": %s", - tf->pathname, tar_getlasterror()); - exit(1); + pg_fatal("could not fsync file \"%s\": %s", + tf->pathname, tar_getlasterror()); } /* Clean up and done */ |