crimson-osd uses RefCountedObject instances for objects that move between
reactors, so we really do need to use an atomic counter.
Fixes: https://tracker.ceph.com/issues/61502
Signed-off-by: chunmei <chunmei.liu@intel.com>
private:
void _get() const;
-#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
- // crimson is single threaded at the moment
- mutable uint64_t nref{1};
-#else
mutable std::atomic<uint64_t> nref{1};
-#endif
CephContext *cct{nullptr};
};