]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
server: fix compilation if redis not enabled
authorDaniel Salzman <daniel.salzman@nic.cz>
Tue, 30 Dec 2025 11:06:10 +0000 (12:06 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 30 Dec 2025 11:06:10 +0000 (12:06 +0100)
src/knot/server/server.c

index e632056d6678e92d4fabd11ef65440620b9741d1..6ff377b20acbcea30c6fe604e26c44242b07c78e 100644 (file)
@@ -1781,6 +1781,7 @@ static int reconfigure_remote_pool(conf_t *conf, server_t *server)
                hash = curr_hash;
        }
 
+#ifdef ENABLE_REDIS
        val = conf_get(conf, C_DB, C_ZONE_DB_LISTEN);
        if (val.code == KNOT_EOK) {
                static uint64_t hash = 0;
@@ -1804,6 +1805,7 @@ static int reconfigure_remote_pool(conf_t *conf, server_t *server)
                }
                hash = curr_hash;
        }
+#endif // ENABLE_REDIS
 
        val = conf_get(conf, C_SRV, C_RMT_RETRY_DELAY);
        int delay_ms = conf_int(&val);