summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-19 14:50:03 -0700
committerSage Weil <sage@inktank.com>2013-07-19 14:50:03 -0700
commit06ae53e2b6029a1faec921957749b20635e0520e (patch)
tree19bb20f682c5e6aaa5b6ca4fc12e5fd2547277fe
parentd3902e2e31574f4e91e2932c6ed7b06e6a6c7014 (diff)
downloadceph-06ae53e2b6029a1faec921957749b20635e0520e.tar.gz
mon: improve osdmap subscription debug output
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/mon/OSDMonitor.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index c8baac58c83..ecf6b89d110 100644
--- a/src/mon/OSDMonitor.cc
+++ b/src/mon/OSDMonitor.cc
@@ -1651,6 +1651,7 @@ epoch_t OSDMonitor::blacklist(const entity_addr_t& a, utime_t until)
void OSDMonitor::check_subs()
{
+ dout(10) << __func__ << dendl;
string type = "osdmap";
if (mon->session_map.subs.count(type) == 0)
return;
@@ -1664,6 +1665,8 @@ void OSDMonitor::check_subs()
void OSDMonitor::check_sub(Subscription *sub)
{
+ dout(10) << __func__ << " " << sub << " next " << sub->next
+ << (sub->onetime ? " (onetime)":" (ongoing)") << dendl;
if (sub->next <= osdmap.get_epoch()) {
if (sub->next >= 1)
send_incremental(sub->next, sub->session->inst, sub->incremental_onetime);