Need to reset backoff only when we know system is functional end to end. Earlier
we reset it after locking succeeded, but that could succeed even if we're not
connected to the peer.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
set_sleeping(true);
yield;
}
- *reset_backoff = true;
}
mdlog_marker = sync_marker.marker;
set_marker_tracker(new RGWMetaSyncShardMarkerTrack(sync_env,
drain_all();
return retcode;
}
+ *reset_backoff = true; /* if we got to this point, all systems function */
ldout(sync_env->cct, 20) << __func__ << ":" << __LINE__ << ": shard_id=" << shard_id << " mdlog_marker=" << mdlog_marker << " sync_marker.marker=" << sync_marker.marker << dendl;
if (mdlog_marker > max_marker) {
marker = max_marker;