]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Reorganize class members in LocalLock header 30143/head
authorVarsha Rao <varao@redhat.com>
Wed, 4 Sep 2019 13:52:18 +0000 (19:22 +0530)
committerVarsha Rao <varao@redhat.com>
Thu, 5 Sep 2019 07:00:53 +0000 (12:30 +0530)
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 <varao@redhat.com>
src/mds/LocalLock.h

index d405a6b33bb2eb44a338df3551d2407b10de7c33..2381715a75543841ef90b49ab383b942a1ed71ae 100644 (file)
@@ -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