server: set terminating_sessions flag correctly

So caller won't do this multiple times.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2016-06-14 09:11:15 +08:00
parent 2378709134
commit bbbc326345

View File

@ -571,6 +571,8 @@ void Server::terminate_sessions()
{
dout(2) << "terminate_sessions" << dendl;
terminating_sessions = true;
// kill them off. clients will retry etc.
set<Session*> sessions;
mds->sessionmap.get_client_session_set(sessions);