mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
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:
parent
2378709134
commit
bbbc326345
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user