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:
Kunshan Wang 2025-07-17 22:44:02 +08:00 committed by Peter Zhu
parent 8541dec8c4
commit 0f408602cb

View file

@ -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;