]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RWLock: make lockdep id mutable 1647/head
authorSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 04:36:37 +0000 (21:36 -0700)
committerSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 04:36:37 +0000 (21:36 -0700)
This allows us to keep the lock/unlock methods const, as per commit
970d53fc0fefc89ffe7550880a4aaa36bd534955.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/RWLock.h

index d41586a059d9a1c6bd44de2844bbadbf76ef3fb3..f901ac0de7dfe0bfe54cf6894839782bd8651062 100644 (file)
@@ -24,7 +24,7 @@ class RWLock
 {
   mutable pthread_rwlock_t L;
   const char *name;
-  int id;
+  mutable int id;
 
 public:
   RWLock(const RWLock& other);