Skip to content

Commit

Permalink
handle uninitialized epoch value merge (#874)
Browse files Browse the repository at this point in the history
* handle uninitialized epoch value merge

* release 1.0.47
  • Loading branch information
vazois authored Dec 11, 2024
1 parent dd76624 commit aabc0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<!-- Versioning property for builds and packages -->
<PropertyGroup>
<VersionPrefix>1.0.46</VersionPrefix>
<VersionPrefix>1.0.47</VersionPrefix>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion libs/cluster/Server/ClusterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ public ClusterConfig MergeSlotMap(ClusterConfig senderConfig, ILogger logger = n
}

// Process this slot information when config epoch of original owner is greater than config epoch of sender
if (workers[currentOwnerId].ConfigEpoch >= senderConfig.LocalNodeConfigEpoch)
if (senderConfig.LocalNodeConfigEpoch != 0 && workers[currentOwnerId].ConfigEpoch >= senderConfig.LocalNodeConfigEpoch)
continue;

// Update ownership of node
Expand Down

0 comments on commit aabc0bb

Please sign in to comment.