crimson, common: RefCountedObj doesn't use atomics in SeaStar builds.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Radoslaw Zarzynski 2019-05-13 17:57:12 +02:00
parent 782be351c8
commit 8889b14792

View File

@ -72,7 +72,12 @@ public:
}
private:
#ifndef WITH_SEASTAR
mutable std::atomic<uint64_t> nref;
#else
// crimson is single threaded at the moment
mutable uint64_t nref;
#endif
CephContext *cct;
};