Skip to content
Snippets Groups Projects
Commit b56c85a2 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: don't update current_config_version for offline replicasets

parent 641e8383
No related branches found
No related tags found
1 merge request!1303fix: expel is blocked until buckets are rebalanced from last instance
......@@ -207,14 +207,20 @@ pub(super) fn action_plan<'i>(
let cas = cas::Request::new(dml, predicate, ADMIN_ID)?;
let replication_config_version_actualize = cas;
return Ok(ConfigureReplication {
replicaset_name,
targets,
master_name,
replicaset_peers,
replication_config_version_actualize,
if !targets.is_empty() {
return Ok(ConfigureReplication {
replicaset_name,
targets,
master_name,
replicaset_peers,
replication_config_version_actualize,
}
.into());
} else {
#[rustfmt::skip]
tlog!(Warning, "all replicas in {replicaset_name} are offline, skipping replication configuration");
// Fall through, look for other things to do
}
.into());
}
////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment