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>
class LocalLock : public SimpleLock {
public:
- client_t last_wrlock_client;
-
LocalLock(MDSCacheObject *o, LockType *t) :
SimpleLock(o, t) {
set_state(LOCK_LOCK); // always.
out << " last_client=" << last_wrlock_client;
out << ")";
}
-};
-
+private:
+ client_t last_wrlock_client;
+};
#endif