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

chore: cleanup code formatting

parent 191dc336
No related branches found
No related tags found
1 merge request!1235use config version to trigger replication configuration instead of state Replicated
......@@ -115,9 +115,9 @@ pub(super) fn action_plan<'i>(
if target_vshard_config_version == current_vshard_config_version {
// Only bump the version if it's not already bumped.
vshard_config_version_bump = Some(Dml::replace(
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
)?);
};
......@@ -186,9 +186,9 @@ pub(super) fn action_plan<'i>(
if target_vshard_config_version == current_vshard_config_version {
// Only bump the version if it's not already bumped.
vshard_config_version_bump = Some(Dml::replace(
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
)?);
};
......@@ -231,9 +231,9 @@ pub(super) fn action_plan<'i>(
if target_vshard_config_version == current_vshard_config_version {
// Only bump the version if it's not already bumped.
vshard_config_version_bump = Some(Dml::replace(
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
)?);
};
......@@ -270,9 +270,9 @@ pub(super) fn action_plan<'i>(
if target_vshard_config_version == current_vshard_config_version {
// Only bump the version if it's not already bumped.
vshard_config_version_bump = Some(Dml::replace(
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
ClusterwideTable::Property,
&(&PropertyName::TargetVshardConfigVersion, target_vshard_config_version + 1),
ADMIN_ID,
)?);
};
......
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