mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Use predefined macro for used_memory() update
This commit is contained in:
parent
9be3ee8283
commit
f9bca13a1a
@ -220,7 +220,7 @@ size_t zmalloc_used_memory(void) {
|
||||
|
||||
if (zmalloc_thread_safe) {
|
||||
#ifdef HAVE_ATOMIC
|
||||
um = __sync_add_and_fetch(&used_memory, 0);
|
||||
um = update_zmalloc_stat_add(0);
|
||||
#else
|
||||
pthread_mutex_lock(&used_memory_mutex);
|
||||
um = used_memory;
|
||||
|
Loading…
Reference in New Issue
Block a user