Skip to content

Commit db345c6

Browse files
authored
Merge pull request #132 from koculu/codex/rename-isdroppping-flag
Fix IsDroppping typo
2 parents 3b4c70c + f80b431 commit db345c6

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/ZoneTree/Segments/Disk/DiskSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public abstract class DiskSegment<TKey, TValue> : IDiskSegment<TKey, TValue>
3333

3434
volatile bool IsDropRequested;
3535

36-
protected volatile bool IsDroppping;
36+
protected volatile bool IsDropping;
3737

3838
bool IsDropped;
3939

@@ -317,7 +317,7 @@ public void Drop()
317317

318318
// reads will increase ReadCount when they begin,
319319
// and decrease ReadCount when they end.
320-
IsDroppping = true;
320+
IsDropping = true;
321321
// After the flag change,
322322
// reads will start throwing DiskSegmentIsDroppingException
323323

src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyAndValueDiskSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected override TKey ReadKey(long index, BlockPin blockPin)
131131
{
132132
if (CircularKeyCache.TryGet(index, out var key)) return key;
133133
Interlocked.Increment(ref ReadCount);
134-
if (IsDroppping)
134+
if (IsDropping)
135135
{
136136
throw new DiskSegmentIsDroppingException();
137137
}
@@ -158,7 +158,7 @@ protected override TValue ReadValue(long index, BlockPin blockPin)
158158
{
159159
if (CircularValueCache.TryGet(index, out var value)) return value;
160160
Interlocked.Increment(ref ReadCount);
161-
if (IsDroppping)
161+
if (IsDropping)
162162
{
163163
throw new DiskSegmentIsDroppingException();
164164
}

src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeKeyDiskSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin)
151151
{
152152
if (CircularKeyCache.TryGet(index, out var key)) return key;
153153
Interlocked.Increment(ref ReadCount);
154-
if (IsDroppping)
154+
if (IsDropping)
155155
{
156156
throw new DiskSegmentIsDroppingException();
157157
}
@@ -178,7 +178,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin)
178178
{
179179
if (CircularValueCache.TryGet(index, out var value)) return value;
180180
Interlocked.Increment(ref ReadCount);
181-
if (IsDroppping)
181+
if (IsDropping)
182182
{
183183
throw new DiskSegmentIsDroppingException();
184184
}

src/ZoneTree/Segments/DiskSegmentVariations/FixedSizeValueDiskSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin)
150150
{
151151
if (CircularKeyCache.TryGet(index, out var key)) return key;
152152
Interlocked.Increment(ref ReadCount);
153-
if (IsDroppping)
153+
if (IsDropping)
154154
{
155155
throw new DiskSegmentIsDroppingException();
156156
}
@@ -184,7 +184,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin)
184184
{
185185
if (CircularValueCache.TryGet(index, out var value)) return value;
186186
Interlocked.Increment(ref ReadCount);
187-
if (IsDroppping)
187+
if (IsDropping)
188188
{
189189
throw new DiskSegmentIsDroppingException();
190190
}

src/ZoneTree/Segments/DiskSegmentVariations/VariableSizeDiskSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected unsafe override TKey ReadKey(long index, BlockPin blockPin)
156156
{
157157
if (CircularKeyCache.TryGet(index, out var key)) return key;
158158
Interlocked.Increment(ref ReadCount);
159-
if (IsDroppping)
159+
if (IsDropping)
160160
{
161161
throw new DiskSegmentIsDroppingException();
162162
}
@@ -189,7 +189,7 @@ protected unsafe override TValue ReadValue(long index, BlockPin blockPin)
189189
{
190190
if (CircularValueCache.TryGet(index, out var value)) return value;
191191
Interlocked.Increment(ref ReadCount);
192-
if (IsDroppping)
192+
if (IsDropping)
193193
{
194194
throw new DiskSegmentIsDroppingException();
195195
}

0 commit comments

Comments
 (0)