Unbreak the build.
authorRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 14:22:54 +0000 (10:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2022 14:22:54 +0000 (10:22 -0400)
Commit ffd53659c46a54a6978bcb8c4424c1e157a2c0f1 broke the build for
anyone not compiling with LZ4 and ZSTD enabled. Woops.

src/backend/replication/basebackup_lz4.c
src/backend/replication/basebackup_zstd.c

index 06c161ddc4c760242bd87b2a9d320b3d55b186a4..48929321a4783b62e10d4484d37ce7b261f24e46 100644 (file)
@@ -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);
 
index 96b79856931f21a2a9834949536286e52ea8bace..bb5b668c2ab4c284fc867a3db5f2b67edc554108 100644 (file)
@@ -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);