diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-01-07 07:55:36 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-01-07 11:01:42 +0100 |
commit | 1cd827d49c5f287a8ce5de6922c3c00d30a0895b (patch) | |
tree | 046f5ef1d2ff4c5dfbb0d0c6b39ca4708d7bd0f0 /document | |
parent | fad9a3d1557aa43598ffbed999f1ea20c8b711ac (diff) |
Revert "Revert "Keep reply with most severe error when merging error replies""
This reverts commit 9263966a9c697f5acff53a595493e27a2f05e683.
Diffstat (limited to 'document')
-rwxr-xr-x | document/src/main/java/com/yahoo/document/BucketId.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/document/src/main/java/com/yahoo/document/BucketId.java b/document/src/main/java/com/yahoo/document/BucketId.java index 36ec53c51d3..f6d3dc34af1 100755 --- a/document/src/main/java/com/yahoo/document/BucketId.java +++ b/document/src/main/java/com/yahoo/document/BucketId.java @@ -74,9 +74,9 @@ public class BucketId implements Comparable<BucketId> { public int compareTo(BucketId other) { if (id >>> 32 == other.id >>> 32) { - if ((id & 0xFFFFFFFFl) > (other.id & 0xFFFFFFFFl)) { + if ((id & 0xFFFFFFFFL) > (other.id & 0xFFFFFFFFL)) { return 1; - } else if ((id & 0xFFFFFFFFl) < (other.id & 0xFFFFFFFFl)) { + } else if ((id & 0xFFFFFFFFL) < (other.id & 0xFFFFFFFFL)) { return -1; } return 0; @@ -97,8 +97,8 @@ public class BucketId implements Comparable<BucketId> { public long getId() { int notUsed = 64 - getUsedBits(); - long usedMask = (0xFFFFFFFFFFFFFFFFl << notUsed) >>> notUsed; - long countMask = (0xFFFFFFFFFFFFFFFFl >>> (64 - COUNT_BITS)) << (64 - COUNT_BITS); + long usedMask = (0xFFFFFFFFFFFFFFFFL << notUsed) >>> notUsed; + long countMask = (0xFFFFFFFFFFFFFFFFL >>> (64 - COUNT_BITS)) << (64 - COUNT_BITS); return id & (usedMask | countMask); } |