This was causing mons to send far more digest messages than
should have been sent. Could have been responsible for
reports of very high CPU consumption on the mgr daemon.
Fixes: http://tracker.ceph.com/issues/18994
Signed-off-by: John Spray <john.spray@redhat.com>
}
} else {
assert(sub->type == "mgrdigest");
- send_digests();
+ if (digest_callback == nullptr) {
+ send_digests();
+ }
}
}
void MgrMonitor::init()
{
- send_digests(); // To get it to schedule its own event
+ if (digest_callback == nullptr) {
+ send_digests(); // To get it to schedule its own event
+ }
}
void MgrMonitor::on_shutdown()