From f58fd9e6d22d2b7f736a12d1d0258b95a7091407 Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 27 Jun 2023 15:21:58 +0800 Subject: [PATCH] Set HIDDEN_CONFIG flag on aof-disable-auto-gc (#12355) aof-disable-auto-gc was created for testing purposes, to check if certain AOF files were actually generated and if they were deletedcorrectly during testing. So hiding it, see #12249 for more discussion. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index a61e3a31d..b26704283 100644 --- a/src/config.c +++ b/src/config.c @@ -3093,7 +3093,7 @@ standardConfig static_configs[] = { createBoolConfig("cluster-allow-replica-migration", NULL, MODIFIABLE_CONFIG, server.cluster_allow_replica_migration, 1, NULL, NULL), createBoolConfig("replica-announced", NULL, MODIFIABLE_CONFIG, server.replica_announced, 1, NULL, NULL), createBoolConfig("latency-tracking", NULL, MODIFIABLE_CONFIG, server.latency_tracking_enabled, 1, NULL, NULL), - createBoolConfig("aof-disable-auto-gc", NULL, MODIFIABLE_CONFIG, server.aof_disable_auto_gc, 0, NULL, updateAofAutoGCEnabled), + createBoolConfig("aof-disable-auto-gc", NULL, MODIFIABLE_CONFIG | HIDDEN_CONFIG, server.aof_disable_auto_gc, 0, NULL, updateAofAutoGCEnabled), createBoolConfig("replica-ignore-disk-write-errors", NULL, MODIFIABLE_CONFIG, server.repl_ignore_disk_write_error, 0, NULL, NULL), /* String Configs */