]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
reset session seq on reconnect
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 16 Jul 2007 23:35:03 +0000 (23:35 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 16 Jul 2007 23:35:03 +0000 (23:35 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1504 29311d96-e01e-0410-9327-a35deaab8ce9

branches/sage/cephmds2/client/Client.cc

index 69c3c4e104e46b3dea56c0a3f71e49a5732532dd..bfe33f295d16cd728d8fc7f450efc5021d09a832 100644 (file)
@@ -949,7 +949,10 @@ void Client::send_reconnect(int mds)
        dout(10) << " clearing stale caps on " << p->first << endl;
        p->second->stale_caps.erase(mds);         // hrm, is this right?
       }
-    }    
+    }
+
+    // reset my cap seq number
+    mds_sessions[mds] = 0;
   } else {
     dout(10) << " i had no session with this mds";
     m->closed = true;