]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix 'allows_dirfrags' check for fragment_dir command 8777/head
authorYan, Zheng <zyan@redhat.com>
Mon, 25 Apr 2016 02:55:43 +0000 (10:55 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 27 Apr 2016 07:12:05 +0000 (15:12 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDSRank.cc

index feb48970e1fdf0c3de43ae7bf72d5da8d57efd4a..eddd47466515df293677c9f34e80b0672b9d2baf 100644 (file)
@@ -2473,7 +2473,7 @@ bool MDSRankDispatcher::handle_command_legacy(std::vector<std::string> 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);