]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make mds_role_t member order match constructor
authorJohn Spray <john.spray@redhat.com>
Fri, 30 Sep 2016 20:57:35 +0000 (21:57 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 3 Oct 2016 06:42:02 +0000 (07:42 +0100)
Previously this was mildy confusing.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/mdstypes.h

index 8c249169a1943188594faff68627a4907e063f66..b50dc2d46770e75f44e3935e8db52217cb54dd54 100644 (file)
@@ -90,13 +90,14 @@ extern const mds_rank_t MDS_RANK_NONE;
 class mds_role_t
 {
   public:
-  mds_rank_t rank;
   fs_cluster_id_t fscid;
+  mds_rank_t rank;
+
   mds_role_t(fs_cluster_id_t fscid_, mds_rank_t rank_)
-    : rank(rank_), fscid(fscid_)
+    : fscid(fscid_), rank(rank_)
   {}
   mds_role_t()
-    : rank(MDS_RANK_NONE), fscid(FS_CLUSTER_ID_NONE)
+    : fscid(FS_CLUSTER_ID_NONE), rank(MDS_RANK_NONE)
   {}
   bool operator<(mds_role_t const &rhs) const
   {