]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: avoid lossy connection sending ack message 13700/head
authorHaomai Wang <haomai@xsky.com>
Tue, 28 Feb 2017 16:16:55 +0000 (00:16 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 6 Mar 2017 05:24:04 +0000 (13:24 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index 082942cc4448c09f5bc55182f9ddebeea2a7a91b..824fd272d2c84b892a7d20107ad2da01b447da79 100644 (file)
@@ -768,8 +768,10 @@ void AsyncConnection::process()
                                     << message->get_seq() << " " << message
                                    << " " << *message << dendl;
 
-          ack_left.inc();
-          need_dispatch_writer = true;
+          if (!policy.lossy) {
+            ack_left.inc();
+            need_dispatch_writer = true;
+          }
           state = STATE_OPEN;
 
           logger->inc(l_msgr_recv_messages);