Skip to content

Commit

Permalink
CURATOR-688. SharedCount will be never updated successful when versio…
Browse files Browse the repository at this point in the history
…n of ZNode is overflow.
  • Loading branch information
Hexiaoqiao committed Aug 31, 2023
1 parent 72beebc commit 74deeb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public boolean trySetValue(VersionedValue<byte[]> previous, byte[] newValue) thr
private void updateValue(int version, byte[] bytes) {
while (true) {
VersionedValue<byte[]> current = currentValue.get();
if (current.getVersion() >= version) {
if (current.getVersion() >= version && version != Integer.MIN_VALUE) {
// A newer version was concurrently set.
return;
}
Expand Down

0 comments on commit 74deeb7

Please sign in to comment.