From 8889b1479285c6984aba7e569a6b6a91a95a43ef Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 13 May 2019 17:57:12 +0200 Subject: [PATCH] crimson, common: RefCountedObj doesn't use atomics in SeaStar builds. Signed-off-by: Radoslaw Zarzynski --- src/common/RefCountedObj.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/RefCountedObj.h b/src/common/RefCountedObj.h index 4cd4c9fd0a7..3ebbe78fd2b 100644 --- a/src/common/RefCountedObj.h +++ b/src/common/RefCountedObj.h @@ -72,7 +72,12 @@ public: } private: +#ifndef WITH_SEASTAR mutable std::atomic nref; +#else + // crimson is single threaded at the moment + mutable uint64_t nref; +#endif CephContext *cct; };