Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Maximum Segment Id when multi part bottom segments are loaded. #78

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ZoneTree/Core/ZoneTreeLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ void SetMaximumId()
var bs = ZoneTreeMeta.BottomSegments;
maximumId = bs.Count > 0 ? bs.Max() : 0;
SetMaximumSegmentId(maximumId);
if (maximumId > 0)
SetMaximumSegmentId(MultiPartDiskSegment<TKey, TValue>
.ReadMaximumSegmentId(maximumId, Options.RandomAccessDeviceManager));
}

public ZoneTree<TKey, TValue> LoadZoneTree()
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.5.0</ProductVersion>
<Version>1.7.5.0</Version>
<ProductVersion>1.7.6.0</ProductVersion>
<Version>1.7.6.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
Loading