From: Yan, Zheng Date: Wed, 6 Sep 2017 09:06:44 +0000 (+0800) Subject: mds: fix return value of MDCache::dump_cache X-Git-Tag: v12.2.3~95^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4f5dc27803d0f356c15ee2a4de4c22dbf943fe3;p=ceph.git mds: fix return value of MDCache::dump_cache previous commit "mds: track snap inodes through sorted map" makes MDCache::dump_cache return 1 on success. Signed-off-by: "Yan, Zheng" (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. --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index b40833fd1ca..c4677c80efa 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -12004,6 +12004,7 @@ int MDCache::dump_cache(const char *fn, Formatter *f, f->close_section(); // inode } } + r = 0; out: if (f) {