Skip to content

Commit

Permalink
Update SplitShardsMetadata.java
Browse files Browse the repository at this point in the history
Signed-off-by: Paras Jain <[email protected]>
  • Loading branch information
parasjain1 authored Feb 19, 2025
1 parent c6f80dd commit 8d3b7fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
int result = Arrays.deepHashCode(rootShardsToAllChildren);
result = 31 * result + parentToChildShards.hashCode();
for (Map.Entry<Integer, ShardRange[]> entry : parentToChildShards.entrySet()) {
result = 31 * result + Objects.hash(entry.getKey(), Arrays.deepHashCode(entry.getValue()));
}
result = 31 * result + maxShardId;
result = 31 * result + inProgressSplitShardId;
return result;
Expand Down

0 comments on commit 8d3b7fd

Please sign in to comment.