mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
crimson, common: RefCountedObj doesn't use atomics in SeaStar builds.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
782be351c8
commit
8889b14792
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user