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; };