From 08ba3119b65754b6402635b0fc82a551ed1be58a Mon Sep 17 00:00:00 2001 From: wuxianrong Date: Wed, 2 Apr 2025 20:55:16 +0800 Subject: [PATCH] added the correct loading of admin-cmd-list in the configuration file --- conf/pika.conf | 2 +- src/pika_conf.cc | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/conf/pika.conf b/conf/pika.conf index 335aaba153..4c2f91ace7 100644 --- a/conf/pika.conf +++ b/conf/pika.conf @@ -51,7 +51,7 @@ slow-cmd-list : # List of commands considered as administrative. These commands will be handled by the admin thread pool. Modify this list as needed. # Default commands: info, ping, monitor # This parameter is only supported by the CONFIG GET command and not by CONFIG SET. -admin-cmd-list : info, ping, monitor +admin-cmd-list : info, ping, monitor, auth # The number of threads to write DB in slaveNode when replicating. # It's preferable to set slave's sync-thread-num value close to master's thread-pool-size. diff --git a/src/pika_conf.cc b/src/pika_conf.cc index cb004f2d2a..b3d894b88b 100644 --- a/src/pika_conf.cc +++ b/src/pika_conf.cc @@ -192,10 +192,7 @@ int PikaConf::Load() { std::string admin_cmd_list; GetConfStr("admin-cmd-list", &admin_cmd_list); - if (admin_cmd_list == "") { - admin_cmd_list = "info, monitor, ping"; - SetAdminCmd(admin_cmd_list); - } + SetAdminCmd(admin_cmd_list); std::string unfinished_full_sync; GetConfStr("internal-used-unfinished-full-sync", &unfinished_full_sync);