// We have a potentially inconsistent store state in hands. Get rid of it
// and start fresh.
bool clear_store = false;
- if (is_sync_on_going()) {
+ if (store->exists("mon_sync", "in_sync")) {
dout(1) << __func__ << " clean up potentially inconsistent store state"
<< dendl;
clear_store = true;
latest_monmap.encode(bl, CEPH_FEATURES_ALL);
}
-bool Monitor::is_sync_on_going()
-{
- return store->exists("mon_sync", "in_sync");
-}
-
void Monitor::sync_reset()
{
if (sync_timeout_event) {
*/
void sync_obtain_latest_monmap(bufferlist &bl);
- /**
- * check if a sync is in progress
- */
- bool is_sync_on_going();
-
/**
* Start the synchronization efforts.
*