]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/heartbeat: relax the order of replacement reset and accept 51916/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 29 Jun 2023 05:25:28 +0000 (13:25 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 29 Jun 2023 06:27:58 +0000 (14:27 +0800)
commita8709464232fc5cc28032716f67c754971420e6b
tree9fd843ec5f89c9372ccb9f3814ac8be967f7a9d6
parent2fed9397d5f1a93e01d02b5914931420c4f28c37
crimson/osd/heartbeat: relax the order of replacement reset and accept

With the new implementation in messenger, the order of replacement reset
and accept events cannot be determined because they are from different
connections.

Modify the heatbeat logic to tolerate the both cases.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Dispatcher.h
src/crimson/net/ProtocolV2.cc
src/crimson/net/chained_dispatchers.cc
src/crimson/net/chained_dispatchers.h
src/crimson/net/io_handler.cc
src/crimson/net/io_handler.h
src/crimson/osd/heartbeat.cc
src/crimson/osd/heartbeat.h
src/test/crimson/test_messenger.cc
src/test/crimson/test_messenger_thrash.cc