mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue