Skip to content

Commit

Permalink
Dispose bottom segments before drop.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Oct 14, 2024
1 parent c58504f commit c683e02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ZoneTree/Core/ZoneTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,14 @@ public void Drop()
DiskSegment.Drop();
DiskSegment.Dispose();
foreach (var ros in ReadOnlySegmentQueue)
{
ros.Drop();
}
foreach (var bs in BottomSegmentQueue)
{
bs.Drop();
bs.Dispose();
}
Options.WriteAheadLogProvider.DropStore();
Options.RandomAccessDeviceManager.DropStore();
}
Expand Down

0 comments on commit c683e02

Please sign in to comment.