]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: bump global_seq when retrying connection
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Jan 2019 05:40:00 +0000 (13:40 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Jan 2019 06:50:44 +0000 (14:50 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/msg/async/AsyncConnection.cc

index a17212a88817eb90d68e471ab1fc9a5c911b0ccf..d9bdf027bcbdb3aff9277566a1068f4730873ffd 100644 (file)
@@ -2125,6 +2125,7 @@ void AsyncConnection::fault()
     } else {
       ldout(async_msgr->cct, 0) << __func__ << " initiating reconnect" << dendl;
       connect_seq++;
+      global_seq = async_msgr->get_global_seq();
       state = STATE_CONNECTING;
     }
     backoff = utime_t();
@@ -2140,6 +2141,7 @@ void AsyncConnection::fault()
         backoff.set_from_double(async_msgr->cct->_conf->ms_max_backoff);
     }
 
+    global_seq = async_msgr->get_global_seq();
     state = STATE_CONNECTING;
     ldout(async_msgr->cct, 10) << __func__ << " waiting " << backoff << dendl;
     // woke up again;