From f519fca9dd958121a289676edf5175fb8be9894f Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 6 Sep 2017 17:06:44 +0800 Subject: [PATCH] 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" --- src/mds/MDCache.cc | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5