]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/RWLock: include assert 6038/head
authorSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 21:06:52 +0000 (17:06 -0400)
committerSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 21:06:52 +0000 (17:06 -0400)
Fixes atomic_t build issue without libatomic-ops.

Fixes: #13088
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/RWLock.h

index 1a70ef1d2b13ead328fcd39cd4dfd35da85580fd..308092c60e83007cd85d56b4ba3fae31583fee45 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <pthread.h>
 #include "lockdep.h"
+#include "include/assert.h"
 #include "include/atomic.h"
 
 class RWLock
@@ -26,7 +27,7 @@ class RWLock
   mutable pthread_rwlock_t L;
   const char *name;
   mutable int id;
-  mutable atomic_t nrlock, nwlock;
+  mutable ceph::atomic_t nrlock, nwlock;
 
 public:
   RWLock(const RWLock& other);