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: v13.0.1~1021^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f519fca9dd958121a289676edf5175fb8be9894f;p=ceph-ci.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" --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 2fbccccd6e6..0bb1cda9b90 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -11979,6 +11979,7 @@ int MDCache::dump_cache(const char *fn, Formatter *f, if (r < 0) goto out; } + r = 0; out: if (f) {