From c14bb940ba986543f8559f201d37b08fa2750162 Mon Sep 17 00:00:00 2001 From: sageweil Date: Mon, 16 Jul 2007 23:35:03 +0000 Subject: [PATCH] reset session seq on reconnect git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1504 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/sage/cephmds2/client/Client.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/branches/sage/cephmds2/client/Client.cc b/branches/sage/cephmds2/client/Client.cc index 69c3c4e104e46..bfe33f295d16c 100644 --- a/branches/sage/cephmds2/client/Client.cc +++ b/branches/sage/cephmds2/client/Client.cc @@ -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; -- 2.39.5