]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson, common: RefCountedObj doesn't use atomics in SeaStar builds. 28085/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 13 May 2019 15:57:12 +0000 (17:57 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 13 May 2019 15:57:12 +0000 (17:57 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/RefCountedObj.h

index 4cd4c9fd0a74a37313f881f62a952844f4aa0534..3ebbe78fd2ba4dae11b16074d259d12426ca8059 100644 (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;
 };