]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: fix unexpected connection markdown in heartbeat
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 27 Aug 2020 02:29:11 +0000 (10:29 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 27 Aug 2020 03:05:09 +0000 (11:05 +0800)
commitbfadb8282c921f977119c9d979d8c9af4ca5edc7
tree6e4678e5affed1fd20feae192d179393aa084495
parentfb44c2f5009f8e2e18663251149c3bf6b06256a9
crimson/osd: fix unexpected connection markdown in heartbeat

Pass reference when log Heartbeat::Connection instance, or the
destructor will be called incorrectly, and the conn be marked down
unexpectedly.

Also, the replacing conn is actually connected during replacement-reset
event.

Fixes: https://tracker.ceph.com/issues/47124
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/ProtocolV2.cc
src/crimson/osd/heartbeat.cc
src/crimson/osd/heartbeat.h