From 150c6ce454d7b0207d692ae5706528e0d487e103 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 6 Mar 2014 11:25:33 +0800 Subject: [PATCH] mds: remove wrong assertion when handling resolve message, it's possible that bound dirfrags are missing. Signed-off-by: Yan, Zheng --- src/mds/MDCache.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index c8afa2ff692b1..6b963f2842d76 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -1086,12 +1086,10 @@ void MDCache::get_force_dirfrag_bound_set(vector& dfs, set& bo all = false; } } - if (all) { + if (all) fgls.push_back(approx_fg); - } else { + else diri->dirfragtree.get_leaves_under(fg, fgls); - assert(!fgls.empty()); - } } dout(10) << " frag " << fg << " contains " << fgls << dendl; for (list::iterator r = fgls.begin(); r != fgls.end(); ++r) { -- 2.39.5