diff options
author | zhugezy <44550833+zhugezy@users.noreply.github.com> | 2022-03-10 15:52:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 09:52:49 +0200 |
commit | a26cab9dd6a2baab656490e9a7a3ef858a27a8f3 (patch) | |
tree | 706701896a3566c3461ee5bbca10b4c409d89f78 /src/config.c | |
parent | 4e012daee97f1d3a3ea8dcef338ce8ef26f2325b (diff) | |
download | redis-a26cab9dd6a2baab656490e9a7a3ef858a27a8f3.tar.gz |
set "disable-thp" config immutable (#10409)
It's confusing for this config to be modifiable since it only takes effect on startup
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 4684d8661..182da1961 100644 --- a/src/config.c +++ b/src/config.c @@ -2795,7 +2795,7 @@ standardConfig static_configs[] = { createBoolConfig("crash-log-enabled", NULL, MODIFIABLE_CONFIG, server.crashlog_enabled, 1, NULL, updateSighandlerEnabled), createBoolConfig("crash-memcheck-enabled", NULL, MODIFIABLE_CONFIG, server.memcheck_enabled, 1, NULL, NULL), createBoolConfig("use-exit-on-panic", NULL, MODIFIABLE_CONFIG | HIDDEN_CONFIG, server.use_exit_on_panic, 0, NULL, NULL), - createBoolConfig("disable-thp", NULL, MODIFIABLE_CONFIG, server.disable_thp, 1, NULL, NULL), + createBoolConfig("disable-thp", NULL, IMMUTABLE_CONFIG, server.disable_thp, 1, NULL, NULL), 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), |