diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index c8afa2ff692..6b963f2842d 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) {