From b0d7e13435ec70c7e741159f50d31593806c8b62 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Mar 2017 15:23:27 -0400 Subject: [PATCH] osd: only send beacon on connect if active Otherwise the mon will just ignore it and we'll wait another cycle. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index b476f4aaeaf27..067beb9ca8f02 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4982,7 +4982,9 @@ void OSD::ms_handle_connect(Connection *con) send_pg_stats(now); map_lock.put_read(); - send_beacon(ceph::coarse_mono_clock::now()); + if (is_active()) { + send_beacon(ceph::coarse_mono_clock::now()); + } } // full map requests may happen while active or pre-boot -- 2.39.5