We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e3c18 commit 3c4b91aCopy full SHA for 3c4b91a
kv.go
@@ -327,8 +327,9 @@ func (r *Reader) SearchIndexEntryWithPrefix(prefix []byte, last bool) (*IndexEnt
327
return nil, 0, nil // Not found in empty set, insertion point 0
328
}
329
i, j := 0, count-1
330
+
331
var matchedEntry *IndexEntry
- var matchedIdx int = -1 // Initialize to indicate no match found yet
332
+ matchedIdx := -1 // Initialize to indicate no match found yet
333
for i <= j {
334
// Calculate midpoint avoiding potential overflow of i+j
335
h := i + (j-i)/2
0 commit comments