]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: prevent reusing the sent messages
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 5 Jul 2019 09:32:41 +0000 (17:32 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 5 Jul 2019 13:51:34 +0000 (21:51 +0800)
commit2d6e77049259daf6521849ab8404b975965fa488
tree10a519b79bb214ffe22930565859a013938d3b36
parent00a67b07b1f7448d6dcbae5dfd399378c459a6ae
crimson/net: prevent reusing the sent messages

We are tracking sent messages by seq, so reusing messages will cause
undefined behavior because seq should not be shared between different
messages.

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