]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix return value of MDCache::dump_cache 20121/head
authorYan, Zheng <zyan@redhat.com>
Wed, 6 Sep 2017 09:06:44 +0000 (17:06 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 25 Jan 2018 17:28:00 +0000 (09:28 -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>
(cherry picked from commit f519fca9dd958121a289676edf5175fb8be9894f)

Backport note: the original cause was commit
46c829d23aa5379a973d2330b0551a5b92598133. The fix was part of snapshot fixes
for Mimic in f519fca9dd958121a289676edf5175fb8be9894f which was not backported.

src/mds/MDCache.cc

index b40833fd1cabbee3ebf15906d4df332f8239e677..c4677c80efac2597f3a46d26802b150255272329 100644 (file)
@@ -12004,6 +12004,7 @@ int MDCache::dump_cache(const char *fn, Formatter *f,
       f->close_section();  // inode
     }
   }
+  r = 0;
 
  out:
   if (f) {