提交 ff3ca17b 编写于 作者: M Matt Stancliff 提交者: antirez

Use predefined macro for used_memory() update

上级 04749ee0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册