From a5feea243554f8765d394666f9c76c8e8981a551 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Sat, 31 Oct 2020 14:07:48 +0300 Subject: [PATCH] fix 59251c3d for 9.6 and 9.5 --- src/backup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup.c b/src/backup.c index b1bc75d2..931a8367 100644 --- a/src/backup.c +++ b/src/backup.c @@ -2508,6 +2508,8 @@ StreamLog(void *arg) true); ctl.replication_slot = replication_slot; ctl.stop_socket = PGINVALID_SOCKET; + ctl.do_sync = false; /* We sync all files at the end of backup */ +// ctl.mark_done /* for future use in s3 */ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 110000 ctl.temp_slot = temp_slot; #endif @@ -2515,8 +2517,6 @@ StreamLog(void *arg) ctl.basedir = (char *) stream_arg->basedir; #endif - ctl.do_sync = false; /* We sync all files at the end of backup */ -// ctl.mark_done /* for future use in s3 */ ctl.stream_stop = stop_streaming; ctl.standby_message_timeout = standby_message_timeout; ctl.partial_suffix = NULL;