]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: request _next_ mdsmap epoch
authorSage Weil <sage@newdream.net>
Tue, 7 Jul 2009 22:13:18 +0000 (15:13 -0700)
committerSage Weil <sage@newdream.net>
Wed, 8 Jul 2009 17:48:10 +0000 (10:48 -0700)
We were off by.

src/kernel/mds_client.c

index 19217797d1220d465e4992af3bd53ae8052fb746..5a3779ded0f9fe390512f8d0a1e084fdff61ba31 100644 (file)
@@ -2384,7 +2384,7 @@ static void delayed_work(struct work_struct *work)
                if (s->s_ttl && time_after(jiffies, s->s_ttl)) {
                        derr(1, "mds%d session probably timed out, "
                             "requesting mds map\n", s->s_mds);
-                       want_map = mdsc->mdsmap->m_epoch;
+                       want_map = mdsc->mdsmap->m_epoch + 1;
                }
                if (s->s_state < CEPH_MDS_SESSION_OPEN) {
                        /* this mds is failed or recovering, just wait */