]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
async: add same behavior when message seq mismatch with simple
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 28 Jan 2015 15:57:16 +0000 (23:57 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 28 Jan 2015 15:57:16 +0000 (23:57 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

index d2db0ebd0adf9db258f72d6966f437051fea21b8..3ca6a11639655b131014e2503ab3d4468927b2d8 100644 (file)
@@ -830,8 +830,15 @@ void AsyncConnection::process()
             message->put();
             if (has_feature(CEPH_FEATURE_RECONNECT_SEQ) && async_msgr->cct->_conf->ms_die_on_old_message)
               assert(0 == "old msgs despite reconnect_seq feature");
-            goto fail;
+            break;
           }
+          if (message->get_seq() > in_seq + 1) {
+            ldout(async_msgr->cct, 0) << __func__ << " missed message?  skipped from seq "
+                                      << in_seq << " to " << message->get_seq() << dendl;
+            if (async_msgr->cct->_conf->ms_die_on_skipped_message)
+              assert(0 == "skipped incoming seq");
+          }
+
           message->set_connection(this);
 
           // note last received message.