if (get_osdmap()->is_blacklisted(ea)) {
dout(10) << "watch: Found blacklisted watcher for " << ea << dendl;
assert(j->second->get_pg() == this);
+ j->second->unregister_cb();
handle_watch_timeout(j->second);
}
}
/// removes the timeout callback, called on completion or cancellation
void unregister_cb();
public:
+
string gen_dbg_prefix() {
stringstream ss;
ss << "Notify(" << make_pair(cookie, notify_id) << " "
/// Registers the timeout callback with watch_timer
void register_cb();
- /// Unregisters the timeout callback
- void unregister_cb();
-
/// send a Notify message when connected for notif
void send_notify(NotifyRef notif);
/// Cleans up state on discard or remove (including Connection state, obc)
void discard_state();
public:
+ /// Unregisters the timeout callback
+ void unregister_cb();
+
/// NOTE: must be called with pg lock held
~Watch();