We are comparing the monmap epoch to the service_map epoch!
Fixes: https://tracker.ceph.com/issues/53479
Signed-off-by: Sage Weil <sage@newdream.net>
void MgrStatMonitor::check_sub(Subscription *sub)
{
- const auto epoch = mon.monmap->get_epoch();
dout(10) << __func__
<< " next " << sub->next
- << " have " << epoch << dendl;
+ << " vs service_map.epoch " << service_map.epoch << dendl;
if (sub->next <= service_map.epoch) {
auto m = new MServiceMap(service_map);
sub->session->con->send_message(m);
session_map.remove_sub(sub);
});
} else {
- sub->next = epoch + 1;
+ sub->next = service_map.epoch + 1;
}
}
}