Skip to content

Commit 18a5a13

Browse files
authored
Merge pull request #127 from koculu/codex/fix-clone-sharing-original-dsk-instance
Fix cloned DiskSegmentOptions
2 parents a60d751 + 7dcfeae commit 18a5a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ZoneTree/Core/ZoneTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public ZoneTreeOptions<TKey, TValue> CloneOptions()
394394
BTreeNodeSize = options.BTreeNodeSize,
395395
Comparer = options.Comparer,
396396
DiskSegmentMaxItemCount = options.DiskSegmentMaxItemCount,
397-
DiskSegmentOptions = dsk,
397+
DiskSegmentOptions = clonesDiskSegmentOptions,
398398
EnableSingleSegmentGarbageCollection = options.EnableSingleSegmentGarbageCollection,
399399
IsDeleted = options.IsDeleted,
400400
KeySerializer = options.KeySerializer,

0 commit comments

Comments
 (0)