MDS crashing
diff mbox

Message ID Pine.LNX.4.64.1009090955470.19781@cobra.newdream.net
State New, archived
Headers show

Commit Message

Sage Weil Sept. 10, 2010, 5:28 p.m. UTC
None

Patch
diff mbox

diff --git a/src/mds/journal.cc b/src/mds/journal.cc
index ec2013d..64fc6a3 100644
--- a/src/mds/journal.cc
+++ b/src/mds/journal.cc
@@ -725,6 +725,8 @@  void ESession::replay(MDS *mds)
       Session *session = mds->sessionmap.get_session(client_inst.name);
       if (session->is_closed())
        mds->sessionmap.remove_session(session);
+      else
+       session->clear();    // the client has reconnected; keep the Session, but reset
     }
   }