]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: set journaler iohint correctly when mds daemon going to active
authorSong Xinying <songxinying.ftd@gmail.com>
Sat, 24 Feb 2018 04:30:32 +0000 (12:30 +0800)
committerSong Xinying <songxinying.ftd@gmail.com>
Sat, 24 Feb 2018 04:30:32 +0000 (12:30 +0800)
Signed-off-by: Song Xinying <songxinying.ftd@gmail.com>
src/mds/MDSRank.cc

index 6650755e58fed93349b758694b1e8e991df9740e..dd9913278a6e6de9c9c47c3e32ad2b8351654491 100644 (file)
@@ -1812,11 +1812,11 @@ void MDSRankDispatcher::handle_mds_map(
        found = true;
        break;
       }
-      if (found)
-       mdlog->set_write_iohint(0);
-      else
-       mdlog->set_write_iohint(CEPH_OSD_OP_FLAG_FADVISE_DONTNEED);
     }
+    if (found)
+      mdlog->set_write_iohint(0);
+    else
+      mdlog->set_write_iohint(CEPH_OSD_OP_FLAG_FADVISE_DONTNEED);
   }
 
   if (oldmap->get_max_mds() != mdsmap->get_max_mds()) {