chia7712 commented on code in PR #16207:
URL: https://github.com/apache/kafka/pull/16207#discussion_r1629837184
##########
storage/src/main/java/org/apache/kafka/storage/internals/log/SkimpyOffsetMap.java:
##########
@@ -109,7 +109,7 @@ public long get(ByteBuffer key) throws DigestException {
hashInto(key, hash1);
// search for the hash of this key by repeated probing until we find
the hash we are looking for or we find an empty slot
int attempt = 0;
- int pos = 0;
+ int pos;
Review Comment:
maybe we can move `int pos;` into the loop?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]