diff --git a/src/Voron/Data/CompactTrees/CompactTree.cs b/src/Voron/Data/CompactTrees/CompactTree.cs index fe7624538e48..1c12eff47e85 100644 --- a/src/Voron/Data/CompactTrees/CompactTree.cs +++ b/src/Voron/Data/CompactTrees/CompactTree.cs @@ -393,6 +393,7 @@ public bool TryGetNextValue(ReadOnlySpan 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;