Skip to content

Commit

Permalink
Contribute to the block cache option should be set on block pin.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Aug 30, 2024
1 parent 5407da7 commit ebf7900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/ZoneTree/Collections/SeekableIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public sealed class SeekableIterator<TKey, TValue> : ISeekableIterator<TKey, TVa
/// </summary>
public bool IsFullyFrozen => true;

private bool ContributeToTheBlockCache = false;

public SeekableIterator(IIndexedReader<TKey, TValue> indexedReader, bool contributeToTheBlockCache = false)
{
IndexedReader = indexedReader;
Expand All @@ -43,7 +41,7 @@ public SeekableIterator(IIndexedReader<TKey, TValue> indexedReader, bool contrib
// Hence it is safe to pin the length here.
Length = indexedReader.Length;

ContributeToTheBlockCache = contributeToTheBlockCache;
blockPin.ContributeToTheBlockCache = contributeToTheBlockCache;
}

public bool Next()
Expand Down
4 changes: 2 additions & 2 deletions src/ZoneTree/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Authors>Ahmed Yasin Koculu</Authors>
<PackageId>ZoneTree</PackageId>
<Title>ZoneTree</Title>
<ProductVersion>1.7.8.0</ProductVersion>
<Version>1.7.8.0</Version>
<ProductVersion>1.7.9.0</ProductVersion>
<Version>1.7.9.0</Version>
<Authors>Ahmed Yasin Koculu</Authors>
<AssemblyTitle>ZoneTree</AssemblyTitle>
<Description>ZoneTree is a persistent, high-performance, transactional, ACID-compliant ordered key-value database for NET. It can operate in memory or on local/cloud storage.</Description>
Expand Down

0 comments on commit ebf7900

Please sign in to comment.