This is a goofy workaround that we're also doing in Mgr::init(). Someday
we should come up with a more elegant solution. In the meantime, this
works just fine!
Signed-off-by: Sage Weil <sage@redhat.com>
derr << "I was active but no longer am" << dendl;
active_mgr->shutdown();
active_mgr.reset();
+
+ // FIXME: reset monc connection so that our old subscriptions go away
+ // and we stop getting MLog and MMgrDigest messages. (We do something
+ // similar in Mgr::init().)
+ monc.reopen_session();
}
}