mirror of
https://github.com/ZoneTree/ZoneTree.git
synced 2026-10-26 11:09:49 +08:00
Merge pull request #78 from koculu/77-bug-incorrect-maximum-segment-id-fetched-when-bottom-segments-are-multi-parts-segments
Set Maximum Segment Id when multi part bottom segments are loaded.
This commit is contained in:
@@ -231,6 +231,9 @@ public sealed class ZoneTreeLoader<TKey, TValue>
|
||||
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()
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user