From 8f75db05f2440868d4424cfe0d2e55cd99625d22 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 18 Dec 2019 20:01:01 +0530 Subject: [PATCH] mds: Reorganize class members in SnapClient header Fixes: https://tracker.ceph.com/issues/43369 Signed-off-by: Varsha Rao --- src/mds/SnapClient.h | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/mds/SnapClient.h b/src/mds/SnapClient.h index ebbe4ef6304f..e259f7924932 100644 --- a/src/mds/SnapClient.h +++ b/src/mds/SnapClient.h @@ -25,24 +25,9 @@ class MDSRank; class LogSegment; class SnapClient : public MDSTableClient { - version_t cached_version; - snapid_t cached_last_created, cached_last_destroyed; - map cached_snaps; - map cached_pending_update; - map > cached_pending_destroy; - - set committing_tids; - - map waiting_for_version; - - uint64_t sync_reqid; - bool synced; - public: explicit SnapClient(MDSRank *m) : - MDSTableClient(m, TABLE_SNAP), - cached_version(0), cached_last_created(0), cached_last_destroyed(0), - sync_reqid(0), synced(false) {} + MDSTableClient(m, TABLE_SNAP) {} void resend_queries() override; void handle_query_result(const cref_t &m) override; @@ -109,6 +94,19 @@ public: void get_snap_infos(map& infomap, const set& snaps) const; int dump_cache(Formatter *f) const; -}; +private: + version_t cached_version = 0; + snapid_t cached_last_created = 0, cached_last_destroyed = 0; + map cached_snaps; + map cached_pending_update; + map > cached_pending_destroy; + + set committing_tids; + + map waiting_for_version; + + uint64_t sync_reqid = 0; + bool synced = false; +}; #endif -- 2.47.3