From 0a40f4fb46071a1732558fa87cb666d2bc197e18 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 13 Nov 2017 18:53:22 +1100 Subject: [PATCH] mds: organize Filesystem class def This follows the coding style guidelines: https://google.github.io/styleguide/cppguide.html#Declaration_Order Signed-off-by: Patrick Donnelly --- src/mds/FSMap.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mds/FSMap.h b/src/mds/FSMap.h index 4179763a3fb3f..388abd4b1c171 100644 --- a/src/mds/FSMap.h +++ b/src/mds/FSMap.h @@ -45,19 +45,16 @@ class health_check_map_t; */ class Filesystem { - public: - fs_cluster_id_t fscid; - MDSMap mds_map; - - void encode(bufferlist& bl, uint64_t features) const; - void decode(bufferlist::iterator& p); - +public: Filesystem() : fscid(FS_CLUSTER_ID_NONE) { } + void encode(bufferlist& bl, uint64_t features) const; + void decode(bufferlist::iterator& p); + void dump(Formatter *f) const; void print(std::ostream& out) const; @@ -77,6 +74,9 @@ class Filesystem return false; } + + fs_cluster_id_t fscid; + MDSMap mds_map; }; WRITE_CLASS_ENCODER_FEATURES(Filesystem) -- 2.39.5