From: Haomai Wang Date: Fri, 12 Dec 2014 02:23:45 +0000 (+0800) Subject: AsyncMessenger: allow RESETSESSION whenever we forget an endpoint X-Git-Tag: v0.93~247^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0a7c331c49387c52a6920215c7a280f77416ce8b;p=ceph.git AsyncMessenger: allow RESETSESSION whenever we forget an endpoint Learn from SimpleMessenger(8cd1fdd7a778eb84cb4d7161f73bc621cc394261) Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index bdb1296f4d3b..a46f183d834d 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1623,7 +1623,7 @@ int AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlist &a << " > " << existing->connect_seq << dendl; goto replace; } // existing - else if (!replacing && policy.resetcheck && connect.connect_seq > 0) { + else if (!replacing && connect.connect_seq > 0) { // we reset, and they are opening a new session ldout(async_msgr->cct, 0) << __func__ << "accept we reset (peer sent cseq " << connect.connect_seq << "), sending RESETSESSION" << dendl;