From d4f5dc27803d0f356c15ee2a4de4c22dbf943fe3 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" (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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index b40833fd1cabb..c4677c80efac2 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) { -- 2.39.5