From 2ee4a890e05de53213beb21aa0cd43994aa2a27a Mon Sep 17 00:00:00 2001 From: chejinge <945997690@qq.com> Date: Fri, 26 Jul 2024 10:05:06 +0800 Subject: [PATCH] fix:slave_prorority need to be 100 when used redis sentinel (#2813) Co-authored-by: chejinge --- include/pika_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pika_conf.h b/include/pika_conf.h index 93587af9b3..942712a7cb 100644 --- a/include/pika_conf.h +++ b/include/pika_conf.h @@ -814,7 +814,7 @@ class PikaConf : public pstd::BaseConf { private: int port_ = 0; - int slave_priority_ = 0; + int slave_priority_ = 100; int thread_num_ = 0; int thread_pool_size_ = 0; int slow_cmd_thread_pool_size_ = 0;