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:
Ahmed Yasin Koculu
2024-08-17 19:44:20 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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()
+2 -2
View File
@@ -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>