From: Sage Weil Date: Fri, 11 Apr 2014 04:36:37 +0000 (-0700) Subject: RWLock: make lockdep id mutable X-Git-Tag: v0.80-rc1~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1647%2Fhead;p=ceph.git RWLock: make lockdep id mutable This allows us to keep the lock/unlock methods const, as per commit 970d53fc0fefc89ffe7550880a4aaa36bd534955. Signed-off-by: Sage Weil --- diff --git a/src/common/RWLock.h b/src/common/RWLock.h index d41586a059d9..f901ac0de7df 100644 --- a/src/common/RWLock.h +++ b/src/common/RWLock.h @@ -24,7 +24,7 @@ class RWLock { mutable pthread_rwlock_t L; const char *name; - int id; + mutable int id; public: RWLock(const RWLock& other);