mirror of
https://github.com/ceph/ceph
synced 2025-01-31 23:44:10 +00:00
mon: improve osdmap subscription debug output
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
d3902e2e31
commit
06ae53e2b6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user