]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix return value of MDCache::dump_cache 16778/head
authorYan, Zheng <zyan@redhat.com>
Wed, 6 Sep 2017 09:06:44 +0000 (17:06 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 6 Sep 2017 13:32:43 +0000 (21:32 +0800)
previous commit "mds: track snap inodes through sorted map" makes
MDCache::dump_cache return 1 on success.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc

index 2fbccccd6e67983b5cb5403ba1cb665a77a348ad..0bb1cda9b90a86c9aa9837f40b1e1759fb62ab7c 100644 (file)
@@ -11979,6 +11979,7 @@ int MDCache::dump_cache(const char *fn, Formatter *f,
     if (r < 0)
       goto out;
   }
+  r = 0;
 
  out:
   if (f) {