Stats: Fix edata_cache size merging.

Previously, we assigned to the output rather than incrementing it.
This commit is contained in:
David Goldblatt 2020-03-12 08:46:43 -07:00 committed by David Goldblatt
parent 565045ef71
commit 8164fad404

View File

@ -99,7 +99,7 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
astats->pa_shard_stats.retained += astats->pa_shard_stats.retained +=
ecache_npages_get(&arena->pa_shard.ecache_retained) << LG_PAGE; ecache_npages_get(&arena->pa_shard.ecache_retained) << LG_PAGE;
astats->pa_shard_stats.edata_avail = atomic_load_zu( astats->pa_shard_stats.edata_avail += atomic_load_zu(
&arena->pa_shard.edata_cache.count, ATOMIC_RELAXED); &arena->pa_shard.edata_cache.count, ATOMIC_RELAXED);
/* Dirty decay stats */ /* Dirty decay stats */