Stats: Fix edata_cache size merging.
Previously, we assigned to the output rather than incrementing it.
This commit is contained in:
parent
565045ef71
commit
8164fad404
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user