pg_basebackup: Try to fix some failures on Windows.
authorRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 17:25:26 +0000 (13:25 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 17:25:26 +0000 (13:25 -0400)
commit591767150f5f91ccc3614e71977c47ce7a68786b
treeba03854d864b25ae5b7d31022acfc4c5cc1c498a
parent9d92582abf918215d27659d45a4c9e78bda50aff
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
src/backend/replication/basebackup_gzip.c
src/bin/pg_basebackup/pg_basebackup.c