From 2425fdfe73937144ecdc478c695bc0c7b2c123c7 Mon Sep 17 00:00:00 2001 From: KernelMaker Date: Mon, 11 Jul 2016 16:39:24 +0800 Subject: [PATCH] log something --- src/pika_server.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pika_server.cc b/src/pika_server.cc index 307ee8ce8b..991196f90d 100644 --- a/src/pika_server.cc +++ b/src/pika_server.cc @@ -314,6 +314,7 @@ void PikaServer::MayUpdateSlavesMap(int64_t sid, int32_t hb_fd) { if (iter->sid == sid) { iter->hb_fd = hb_fd; iter->stage = SLAVE_ITEM_STAGE_TWO; + LOG(INFO) << "New Master-Slave connection established successfully, Slave host: " << iter->ip_port; break; } iter++; @@ -440,6 +441,7 @@ void PikaServer::PlusMasterConnection() { // two connection with master has been established repl_state_ = PIKA_REPL_CONNECTED; master_connection_ = 2; + LOG(INFO) << "Master-Slave connection established successfully"; } } }