mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Fix missing increment of deleted_entries
When `rb_concurrent_set_foreach_with_replace` deletes entries from a concurrent set, it should increment the `deleted_entries` field, too.
This commit is contained in:
parent
8541dec8c4
commit
0f408602cb
@ -402,6 +402,7 @@ rb_concurrent_set_foreach_with_replace(VALUE set_obj, int (*callback)(VALUE *key
|
||||
return;
|
||||
case ST_DELETE:
|
||||
set->entries[i].key = CONCURRENT_SET_DELETED;
|
||||
set->deleted_entries++;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user