aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/basebackup_zstd.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2022-03-23 10:22:54 -0400
committerRobert Haas <rhaas@postgresql.org>2022-03-23 10:22:54 -0400
commit607e75e8f0f84544feb879b747da1d40fed71499 (patch)
tree0e0da14dccee2e7bf31bc2a20f7eaf56bb21447d /src/backend/replication/basebackup_zstd.c
parentffd53659c46a54a6978bcb8c4424c1e157a2c0f1 (diff)
downloadpostgresql-607e75e8f0f84544feb879b747da1d40fed71499.tar.gz
postgresql-607e75e8f0f84544feb879b747da1d40fed71499.zip
Unbreak the build.
Commit ffd53659c46a54a6978bcb8c4424c1e157a2c0f1 broke the build for anyone not compiling with LZ4 and ZSTD enabled. Woops.
Diffstat (limited to 'src/backend/replication/basebackup_zstd.c')
-rw-r--r--src/backend/replication/basebackup_zstd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/replication/basebackup_zstd.c b/src/backend/replication/basebackup_zstd.c
index 96b79856931..bb5b668c2ab 100644
--- a/src/backend/replication/basebackup_zstd.c
+++ b/src/backend/replication/basebackup_zstd.c
@@ -60,8 +60,6 @@ const bbsink_ops bbsink_zstd_ops = {
bbsink *
bbsink_zstd_new(bbsink *next, bc_specification *compress)
{
- int compresslevel;
-
#ifndef USE_ZSTD
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
@@ -69,6 +67,7 @@ bbsink_zstd_new(bbsink *next, bc_specification *compress)
return NULL; /* keep compiler quiet */
#else
bbsink_zstd *sink;
+ int compresslevel;
Assert(next != NULL);