From: Yan, Zheng Date: Mon, 25 Apr 2016 02:55:43 +0000 (+0800) Subject: mds: fix 'allows_dirfrags' check for fragment_dir command X-Git-Tag: v11.0.0~314^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8777%2Fhead;p=ceph.git mds: fix 'allows_dirfrags' check for fragment_dir command Signed-off-by: Yan, Zheng --- diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index feb48970e1f..eddd4746651 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -2473,7 +2473,7 @@ bool MDSRankDispatcher::handle_command_legacy(std::vector args) dout(20) << "try_eval(" << inum << ", " << mask << ")" << dendl; } else dout(15) << "inode " << inum << " not in mdcache!" << dendl; } else if (args[0] == "fragment_dir") { - if (!mdsmap->allows_dirfrags()) { + if (mdsmap->allows_dirfrags()) { if (args.size() == 4) { filepath fp(args[1].c_str()); CInode *in = mdcache->cache_traverse(fp);