diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-03-23 13:25:26 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-03-23 13:25:26 -0400 |
commit | 591767150f5f91ccc3614e71977c47ce7a68786b (patch) | |
tree | ba03854d864b25ae5b7d31022acfc4c5cc1c498a /src/backend | |
parent | 9d92582abf918215d27659d45a4c9e78bda50aff (diff) | |
download | postgresql-591767150f5f91ccc3614e71977c47ce7a68786b.tar.gz postgresql-591767150f5f91ccc3614e71977c47ce7a68786b.zip |
pg_basebackup: Try to fix some failures on Windows.
Commit ffd53659c46a54a6978bcb8c4424c1e157a2c0f1 messed up the
mechanism that was being used to pass parameters to LogStreamerMain()
on Windows. It worked on Linux because only Windows was using threads.
Repair by moving the additional parameters added by that commit into
the 'logstreamer_param' struct.
Along the way, fix a compiler warning on builds without HAVE_LIBZ.
Discussion: http://postgr.es/m/CA+TgmoY5=AmWOtMj3v+cySP2rR=Bt6EGyF_joAq4CfczMddKtw@mail.gmail.com
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/replication/basebackup_gzip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/replication/basebackup_gzip.c b/src/backend/replication/basebackup_gzip.c index 703a91ba776..e4df57b121f 100644 --- a/src/backend/replication/basebackup_gzip.c +++ b/src/backend/replication/basebackup_gzip.c @@ -61,8 +61,6 @@ const bbsink_ops bbsink_gzip_ops = { bbsink * bbsink_gzip_new(bbsink *next, bc_specification *compress) { - int compresslevel; - #ifndef HAVE_LIBZ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), @@ -70,6 +68,7 @@ bbsink_gzip_new(bbsink *next, bc_specification *compress) return NULL; /* keep compiler quiet */ #else bbsink_gzip *sink; + int compresslevel; Assert(next != NULL); |