diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-03-23 10:22:54 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-03-23 10:22:54 -0400 |
commit | 607e75e8f0f84544feb879b747da1d40fed71499 (patch) | |
tree | 0e0da14dccee2e7bf31bc2a20f7eaf56bb21447d | |
parent | ffd53659c46a54a6978bcb8c4424c1e157a2c0f1 (diff) | |
download | postgresql-607e75e8f0f84544feb879b747da1d40fed71499.tar.gz postgresql-607e75e8f0f84544feb879b747da1d40fed71499.zip |
Unbreak the build.
Commit ffd53659c46a54a6978bcb8c4424c1e157a2c0f1 broke the build for
anyone not compiling with LZ4 and ZSTD enabled. Woops.
-rw-r--r-- | src/backend/replication/basebackup_lz4.c | 3 | ||||
-rw-r--r-- | src/backend/replication/basebackup_zstd.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/replication/basebackup_lz4.c b/src/backend/replication/basebackup_lz4.c index 06c161ddc4c..48929321a47 100644 --- a/src/backend/replication/basebackup_lz4.c +++ b/src/backend/replication/basebackup_lz4.c @@ -61,8 +61,6 @@ const bbsink_ops bbsink_lz4_ops = { bbsink * bbsink_lz4_new(bbsink *next, bc_specification *compress) { - int compresslevel; - #ifndef USE_LZ4 ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), @@ -70,6 +68,7 @@ bbsink_lz4_new(bbsink *next, bc_specification *compress) return NULL; /* keep compiler quiet */ #else bbsink_lz4 *sink; + int compresslevel; Assert(next != NULL); 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); |