Skip to content

Commit 5dda459

Browse files
Mixficsolwuxianrong
andauthored
add auth command to admin-thread-pool (OpenAtomFoundation#3048)
Co-authored-by: wuxianrong <[email protected]>
1 parent 61c760c commit 5dda459

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

include/pika_conf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,10 @@ class PikaConf : public pstd::BaseConf {
887887
int slow_cmd_thread_pool_size_ = 0;
888888
int admin_thread_pool_size_ = 0;
889889
std::unordered_set<std::string> slow_cmd_set_;
890-
std::unordered_set<std::string> admin_cmd_set_ = {"info", "ping", "monitor"};
890+
// Because the exporter of Pika_exporter implements Auth authentication
891+
// with the Exporter of Pika, and the Exporter authenticates the Auth when
892+
// users connect to Pika, the Auth is added to the management command thread pool
893+
std::unordered_set<std::string> admin_cmd_set_ = {"info", "ping", "monitor", "auth"};
891894
int sync_thread_num_ = 0;
892895
int sync_binlog_thread_num_ = 0;
893896
int expire_dump_days_ = 3;

0 commit comments

Comments
 (0)