Skip to content

Commit 62e518a

Browse files
Mixficsolwuxianrong
andcommitted
add auth command to admin-thread-pool (OpenAtomFoundation#3048)
Co-authored-by: wuxianrong <[email protected]>
1 parent 26b2ff7 commit 62e518a

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
@@ -1002,7 +1002,10 @@ class PikaConf : public pstd::BaseConf {
10021002
int slow_cmd_thread_pool_size_ = 0;
10031003
int admin_thread_pool_size_ = 0;
10041004
std::unordered_set<std::string> slow_cmd_set_;
1005-
std::unordered_set<std::string> admin_cmd_set_ = {"info", "ping", "monitor"};
1005+
// Because the exporter of Pika_exporter implements Auth authentication
1006+
// with the Exporter of Pika, and the Exporter authenticates the Auth when
1007+
// users connect to Pika, the Auth is added to the management command thread pool
1008+
std::unordered_set<std::string> admin_cmd_set_ = {"info", "ping", "monitor", "auth"};
10061009
int sync_thread_num_ = 0;
10071010
int sync_binlog_thread_num_ = 0;
10081011
int expire_dump_days_ = 3;

0 commit comments

Comments
 (0)