A simple reasonable-effort call for emitting
a MLog before shutting down. Used in MDS which
also waits for its beacon to be acked, so due to
message ordering implicitly waits for this to land
too -- no need to implement a waiting log flush
for this use case.
Signed-off-by: John Spray <john.spray@redhat.com>
}
}
+void MonClient::flush_log()
+{
+ Mutex::Locker l(monc_lock);
+ send_log();
+}
+
void MonClient::handle_monmap(MMonMap *m)
{
ldout(cct, 10) << "handle_monmap " << *m << dendl;
int authenticate(double timeout=0.0);
+ /**
+ * Try to flush as many log messages as we can in a single
+ * message. Use this before shutting down to transmit your
+ * last message.
+ */
+ void flush_log();
+
// mon subscriptions
private:
map<string,ceph_mon_subscribe_item> sub_have; // my subs, and current versions