Skip to content

Commit

Permalink
RavenDB-20635 Encode the key once one lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Jul 3, 2023
1 parent e3419ab commit 764cc68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Voron/Data/CompactTrees/CompactTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ public bool TryGetNextValue(ReadOnlySpan<byte> key, out long termContainerId, ou
cacheScope = new CompactKeyCacheScope(_inner.Llt, key, _inner.State.DictionaryId);

var lookup = new CompactKeyLookup(cacheScope.Key);
lookup.Key.EncodedWithCurrent(out _);
var result = _inner.TryGetNextValue(ref lookup, out value);
termContainerId = lookup.ContainerId;
return result;
Expand Down

0 comments on commit 764cc68

Please sign in to comment.