From: John Spray Date: Wed, 11 Nov 2015 11:11:44 +0000 (+0000) Subject: mds: fix `tell session evict` X-Git-Tag: v10.0.3~16^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ec0099838bc73430c82ed0f79fc30aaee555421;p=ceph.git mds: fix `tell session evict` Don't try waiting on empty context gatherbuilder. Signed-off-by: John Spray --- diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index fcb8efdda4bd..ba03d1331302 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -1795,8 +1795,14 @@ std::vector MDSRankDispatcher::evict_sessions( } } + dout(20) << __func__ << " matched " << victims.size() << " sessions" << dendl; + std::vector result; + if (victims.empty()) { + return result; + } + C_SaferCond on_safe; C_GatherBuilder gather(g_ceph_context, &on_safe); for (const auto s : victims) {