// monclient
bool want_monmap;
Cond map_cond;
-private:
+ bool passthrough_monmap = false;
+
// authenticate
std::unique_ptr<AuthClientHandler> auth;
uint32_t want_keys = 0;
int build_initial_monmap();
int get_monmap();
int get_monmap_privately();
+ /**
+ * If you want to see MonMap messages, set this and
+ * the MonClient will tell the Messenger it hasn't
+ * dealt with it.
+ * Note that if you do this, *you* are of course responsible for
+ * putting the message reference!
+ */
+ void set_passthrough_monmap() {
+ Mutex::Locker l(monc_lock);
+ passthrough_monmap = true;
+ }
+ void unset_passthrough_monmap() {
+ Mutex::Locker l(monc_lock);
+ passthrough_monmap = false;
+ }
/**
* Ping monitor with ID @p mon_id and record the resulting
* reply in @p result_reply.
void _send_command(MonCommand *r);
void _resend_mon_commands();
- int _cancel_mon_command(uint64_t tid, int r);
+ int _cancel_mon_command(uint64_t tid);
void _finish_command(MonCommand *r, int ret, string rs);
void _finish_auth();
void handle_mon_command_ack(MMonCommandAck *ack);