diff --git a/src/ZoneTree/Segments/Disk/DiskSegment.cs b/src/ZoneTree/Segments/Disk/DiskSegment.cs index 4080602..a2b479f 100644 --- a/src/ZoneTree/Segments/Disk/DiskSegment.cs +++ b/src/ZoneTree/Segments/Disk/DiskSegment.cs @@ -33,7 +33,7 @@ public abstract class DiskSegment : IDiskSegment volatile bool IsDropRequested; - protected volatile bool IsDroppping; + protected volatile bool IsDropping; bool IsDropped; @@ -317,7 +317,7 @@ public void Drop() // reads will increase ReadCount when they begin, // and decrease ReadCount when they end. - IsDroppping = true; + IsDropping = true; // After the flag change, // reads will start throwing DiskSegmentIsDroppingException diff --git a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyAndValueDiskSegment.cs b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyAndValueDiskSegment.cs index 9a68ae6..d375a0c 100644 --- a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyAndValueDiskSegment.cs +++ b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyAndValueDiskSegment.cs @@ -131,7 +131,7 @@ protected override TKey ReadKey(long index, BlockPin blockPin) { if (CircularKeyCache.TryGet(index, out var key)) return key; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } @@ -158,7 +158,7 @@ protected override TValue ReadValue(long index, BlockPin blockPin) { if (CircularValueCache.TryGet(index, out var value)) return value; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } diff --git a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyDiskSegment.cs b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyDiskSegment.cs index 7033f21..adb9e95 100644 --- a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyDiskSegment.cs +++ b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyDiskSegment.cs @@ -151,7 +151,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin) { if (CircularKeyCache.TryGet(index, out var key)) return key; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } @@ -178,7 +178,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin) { if (CircularValueCache.TryGet(index, out var value)) return value; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } diff --git a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeValueDiskSegment.cs b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeValueDiskSegment.cs index c0a08ef..8216437 100644 --- a/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeValueDiskSegment.cs +++ b/src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeValueDiskSegment.cs @@ -150,7 +150,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin) { if (CircularKeyCache.TryGet(index, out var key)) return key; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } @@ -184,7 +184,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin) { if (CircularValueCache.TryGet(index, out var value)) return value; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } diff --git a/src/ZoneTree/Segments/DiskSegmentVariations/VariableSizeDiskSegment.cs b/src/ZoneTree/Segments/DiskSegmentVariations/VariableSizeDiskSegment.cs index b736d3f..671f85a 100644 --- a/src/ZoneTree/Segments/DiskSegmentVariations/VariableSizeDiskSegment.cs +++ b/src/ZoneTree/Segments/DiskSegmentVariations/VariableSizeDiskSegment.cs @@ -156,7 +156,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin) { if (CircularKeyCache.TryGet(index, out var key)) return key; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); } @@ -189,7 +189,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin) { if (CircularValueCache.TryGet(index, out var value)) return value; Interlocked.Increment(ref ReadCount); - if (IsDroppping) + if (IsDropping) { throw new DiskSegmentIsDroppingException(); }