]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix RETRY_SESSION seq value
authorSage Weil <sage@newdream.net>
Mon, 26 Jan 2009 20:13:26 +0000 (12:13 -0800)
committerSage Weil <sage@newdream.net>
Tue, 27 Jan 2009 17:50:32 +0000 (09:50 -0800)
Should be existing session's seq, not new sessions.  Error causes
SimpleMessenger to throw an assertion

msg/SimpleMessenger.cc:1283: FAILED assert(reply.connect_seq > connect_seq)

src/kernel/messenger.c

index bf004d5551e844588e4620467677cc9bba2f98f9..7731975a76d637440d0697b2067f4e789a17fdc9 100644 (file)
@@ -1281,7 +1281,7 @@ static int process_accept(struct ceph_connection *con)
                        /* old attempt or peer didn't get the READY */
                        con->out_reply.tag = CEPH_MSGR_TAG_RETRY_SESSION;
                        con->out_reply.connect_seq =
-                               cpu_to_le32(con->connect_seq);
+                               cpu_to_le32(existing->connect_seq);
                        goto reply;
                }