From 02699f423ec52060ef8abff077f77f3b47bddf1b Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 4 Sep 2019 19:22:18 +0530 Subject: [PATCH] mds: Reorganize class members in LocalLock header This patch moves last_wrlock_client to private as it is only used within the LocalLock class. Fixes: https://tracker.ceph.com/issues/41654 Signed-off-by: Varsha Rao --- src/mds/LocalLock.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mds/LocalLock.h b/src/mds/LocalLock.h index d405a6b33bb2e..2381715a75543 100644 --- a/src/mds/LocalLock.h +++ b/src/mds/LocalLock.h @@ -20,8 +20,6 @@ class LocalLock : public SimpleLock { public: - client_t last_wrlock_client; - LocalLock(MDSCacheObject *o, LockType *t) : SimpleLock(o, t) { set_state(LOCK_LOCK); // always. @@ -59,7 +57,8 @@ public: out << " last_client=" << last_wrlock_client; out << ")"; } -}; - +private: + client_t last_wrlock_client; +}; #endif -- 2.39.5