From 5e16974c291e78f5a7cdc3c4f680e7817cff3cca Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 27 Jan 2012 17:32:28 -0800 Subject: [PATCH] osd: reset pgstats timer when we reopen monitor session Otherwise we'll reopen every second from here on out, without giving the new session a chance to start up and do it's thing. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 6c719dcccf6ac..64b6e59f248bf 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1814,8 +1814,9 @@ void OSD::tick() if (outstanding_pg_stats &&(now - g_conf->osd_mon_ack_timeout) > last_pg_stats_ack) { dout(1) << "mon hasn't acked PGStats in " << now - last_pg_stats_ack - << "seconds, reconnecting elsewhere" << dendl; + << " seconds, reconnecting elsewhere" << dendl; monc->reopen_session(); + last_pg_stats_ack = ceph_clock_now(g_ceph_context); // reset clock } // only do waiters if dispatch() isn't currently running. (if it is, -- 2.39.5