Skip to content

Commit

Permalink
common/RWLock: include assert
Browse files Browse the repository at this point in the history
Fixes atomic_t build issue without libatomic-ops.

Fixes: #13088
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Sep 23, 2015
1 parent 741dd5b commit 2e09a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/RWLock.h
Expand Up @@ -19,14 +19,15 @@

#include <pthread.h>
#include "lockdep.h"
#include "include/assert.h"
#include "include/atomic.h"

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);
Expand Down

0 comments on commit 2e09a2c

Please sign in to comment.