fix: increment _removes counter in RemoveBatch for accurate stats
This commit is contained in:
@@ -494,7 +494,10 @@ public sealed class SubList : IDisposable
|
||||
_cache = null;
|
||||
|
||||
foreach (var sub in subs)
|
||||
RemoveInternal(sub);
|
||||
{
|
||||
if (RemoveInternal(sub))
|
||||
_removes++;
|
||||
}
|
||||
|
||||
Interlocked.Increment(ref _generation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user