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 <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2017-11-13 18:53:22 +11:00
parent da7d071654
commit 0a40f4fb46
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -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)