]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
server: set terminating_sessions flag correctly
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Jun 2016 01:11:15 +0000 (09:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Jun 2016 01:11:15 +0000 (09:11 +0800)
So caller won't do this multiple times.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Server.cc

index e7ef6251d844b6e69e4a44961a095bb9c9a54ac8..1b046b90a81bf5b76d63df8ab73b3e6db6fce0df 100644 (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);