]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: Ensure reply connect_seq larger than sent
authorHaomai Wang <haomaiwang@gmail.com>
Fri, 19 Dec 2014 14:07:13 +0000 (22:07 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Tue, 23 Dec 2014 11:22:09 +0000 (19:22 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

index 46ea31c7adb17df5c2232fb12a6cdb902d858124..1fa1bf73f28b83e17b37ef910a87f6bdf153f981 100644 (file)
@@ -1612,7 +1612,7 @@ int AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlist &a
     // Clean up output buffer
     existing->outcoming_bl.clear();
     existing->requeue_sent();
-    reply.connect_seq = existing->connect_seq + 1;
+    reply.connect_seq = connect.connect_seq + 1;
     if (_reply_accept(CEPH_MSGR_TAG_RETRY_SESSION, connect, reply, authorizer_reply) < 0)
       goto fail;