From: Haomai Wang Date: Fri, 19 Dec 2014 14:07:13 +0000 (+0800) Subject: AsyncConnection: Ensure reply connect_seq larger than sent X-Git-Tag: v0.92~84^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b01b5e06fd79a86b472b46a7179fddb3627c5fa;p=ceph.git AsyncConnection: Ensure reply connect_seq larger than sent Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 46ea31c7adb1..1fa1bf73f28b 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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;