]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: add global_seq in ProtocolV2
authorYingxin Cheng <yingxincheng@gmail.com>
Wed, 6 Mar 2019 09:59:52 +0000 (17:59 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 03:21:18 +0000 (11:21 +0800)
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h

index 6e33929bbdcee9d9afcb65a93423e5e87c2c89fd..7b95b2779a8f1cf3e992e1fb2da32f423bdf5a6a 100644 (file)
@@ -215,6 +215,7 @@ void ProtocolV2::execute_connecting()
 {
   trigger_state(state_t::CONNECTING, write_state_t::delay, true);
   seastar::with_gate(pending_dispatch, [this] {
+      global_seq = messenger.get_global_seq();
       return Socket::connect(conn.peer_addr)
         .then([this](SocketFRef sock) {
           socket = std::move(sock);
index 5fbb02cd6633e4254d71f282e87e0d6980917480..3c761c9fa3cb566b1fceeabe84f4cac749af3ffd 100644 (file)
@@ -61,7 +61,7 @@ class ProtocolV2 final : public Protocol {
 
   void trigger_state(state_t state, write_state_t write_state, bool reentrant);
 
-  // TODO: the rest of protocol data structures and variables.
+  uint64_t global_seq = 0;
 
  private:
   seastar::future<> fault();