]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: silence warning ‘MDSRank::fs_name’ will be initialized after [-Wreorder] 37163/head
authorJos Collin <jcollin@redhat.com>
Tue, 15 Sep 2020 14:27:22 +0000 (19:57 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 16 Sep 2020 16:05:43 +0000 (21:35 +0530)
Fixes the warning:
ceph/src/mds/MDSRank.h:436:17: warning: ‘MDSRank::fs_name’ will be initialized after [-Wreorder]

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/mds/MDSRank.cc

index 6f61d1d5f519fbd2fb0da0201327ee3b489a3abb..517c5eb2956282ec1d80102e87dd0b133ab651d5 100644 (file)
@@ -488,13 +488,13 @@ MDSRank::MDSRank(
     Context *respawn_hook_,
     Context *suicide_hook_,
     boost::asio::io_context& ioc) :
-    cct(msgr->cct), fs_name(fs_name_), mds_lock(mds_lock_), clog(clog_),
+    cct(msgr->cct), mds_lock(mds_lock_), clog(clog_),
     timer(timer_), mdsmap(mdsmap_),
     objecter(new Objecter(g_ceph_context, msgr, monc_, ioc, 0, 0)),
     damage_table(whoami_), sessionmap(this),
     op_tracker(g_ceph_context, g_conf()->mds_enable_op_tracker,
                g_conf()->osd_num_op_tracker_shard),
-    progress_thread(this), whoami(whoami_),
+    progress_thread(this), whoami(whoami_), fs_name(fs_name_),
     purge_queue(g_ceph_context, whoami_,
       mdsmap_->get_metadata_pool(), objecter,
       new LambdaContext([this](int r) {