]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: fix exception handling chain with shared_future<>
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 26 Aug 2019 05:06:04 +0000 (13:06 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 28 Aug 2019 02:16:39 +0000 (10:16 +0800)
commitb63c1a16d722bbddd6104f29014135610f470cf7
tree1fd6bd4fd37f22f171c3f6d0810e9cbd28db8d8e
parent5f347a877288d616c9413fe22243d7b5cf11babb
crimson/net: fix exception handling chain with shared_future<>

Fix the assertion failure when exception raised by sending ReconnectOk
or ServerIdent at REPLACING state.

Failed assertion:
ceph/src/seastar/include/seastar/core/future.hh:284: void
seastar::future_state_base::set_exception(std::__exception_ptr::exception_ptr&&):
Assertion `_u.st == state::future' failed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h