Tell edatas their creation arena immediately.

This avoids having to pass it in anywhere else.
This commit is contained in:
David Goldblatt 2020-02-03 13:33:05 -08:00 committed by David Goldblatt
parent 7c7b702064
commit 040eac77cc
4 changed files with 5 additions and 4 deletions

View file

@ -468,6 +468,7 @@ base_alloc_edata(tsdn_t *tsdn, base_t *base) {
if (edata == NULL) {
return NULL;
}
edata_arena_ind_set(edata, ehooks_ind_get(&base->ehooks));
edata_esn_set(edata, esn);
return edata;
}