From: Xiubo Li Date: Thu, 17 Jun 2021 11:20:29 +0000 (+0800) Subject: os/memstore: make the used_bytes to atomic X-Git-Tag: v17.1.0~1603^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41914%2Fhead;p=ceph.git os/memstore: make the used_bytes to atomic Fixes: https://tracker.ceph.com/issues/51092 Signed-off-by: Xiubo Li --- diff --git a/src/os/memstore/MemStore.h b/src/os/memstore/MemStore.h index 92304a4507be..7f0f58e423cd 100644 --- a/src/os/memstore/MemStore.h +++ b/src/os/memstore/MemStore.h @@ -16,6 +16,7 @@ #ifndef CEPH_MEMSTORE_H #define CEPH_MEMSTORE_H +#include #include #include @@ -195,7 +196,7 @@ private: Finisher finisher; - uint64_t used_bytes; + std::atomic used_bytes; void _do_transaction(Transaction& t);