Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 607e75e

Browse files
committed
Unbreak the build.
Commit ffd5365 broke the build for anyone not compiling with LZ4 and ZSTD enabled. Woops.
1 parent ffd5365 commit 607e75e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/backend/replication/basebackup_lz4.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ const bbsink_ops bbsink_lz4_ops = {
6161
bbsink *
6262
bbsink_lz4_new(bbsink *next, bc_specification *compress)
6363
{
64-
int compresslevel;
65-
6664
#ifndef USE_LZ4
6765
ereport(ERROR,
6866
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
6967
errmsg("lz4 compression is not supported by this build")));
7068
return NULL; /* keep compiler quiet */
7169
#else
7270
bbsink_lz4 *sink;
71+
int compresslevel;
7372

7473
Assert(next != NULL);
7574

src/backend/replication/basebackup_zstd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ const bbsink_ops bbsink_zstd_ops = {
6060
bbsink *
6161
bbsink_zstd_new(bbsink *next, bc_specification *compress)
6262
{
63-
int compresslevel;
64-
6563
#ifndef USE_ZSTD
6664
ereport(ERROR,
6765
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
6866
errmsg("zstd compression is not supported by this build")));
6967
return NULL; /* keep compiler quiet */
7068
#else
7169
bbsink_zstd *sink;
70+
int compresslevel;
7271

7372
Assert(next != NULL);
7473

0 commit comments

Comments
 (0)