diff --git a/conf/pika.conf b/conf/pika.conf index 5129919c42..446d91cebe 100644 --- a/conf/pika.conf +++ b/conf/pika.conf @@ -47,7 +47,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, config # 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 0128bd279f..f0435b4c58 100644 --- a/src/pika_conf.cc +++ b/src/pika_conf.cc @@ -188,10 +188,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);