From: Song Xinying Date: Sat, 24 Feb 2018 04:30:32 +0000 (+0800) Subject: mds: set journaler iohint correctly when mds daemon going to active X-Git-Tag: v13.0.2~75^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=130ebb9f75073b2cb577a5bc5491d5eed68fb0ac;p=ceph.git mds: set journaler iohint correctly when mds daemon going to active Signed-off-by: Song Xinying --- diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index 6650755e58fe..dd9913278a6e 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -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()) {