Otherwise, we will end up losing the monmap we backed up when we started
the sync, and the monitor may be unable to start if it is killed or
crashes in-between the sync abort and finishing a new sync.
Fixes: #5256 (partially)
Backport: cuttlefish
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
// Given that we are explicitely aborting the whole sync process, we should
// play it safe and clear the store.
set<string> targets = get_sync_targets_names();
- targets.insert("mon_sync");
store->clear(targets);
dout(1) << __func__ << " no longer a sync requester" << dendl;