]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async: Encode message once features are set 49619/head
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 5 May 2022 03:02:51 +0000 (08:32 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 28 Mar 2024 07:17:58 +0000 (07:17 +0000)
commit7268211161ba5d2c47464c19fb25555ae194841d
tree9788ac83aa5ad360da8fa218f045abde0a57948d
parent90760c8264cf907d2f3ef0faf36b2207b08521cb
msg/async: Encode message once features are set

Modify send_message to check if features are set before trying to encode a
message.
If features are not set at this point, we will encode the message at a
later stage (in write_event) when the connection will be in ready state
which implies that the features will definitely be set.

Fixes: https://tracker.ceph.com/issues/52657
Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV1.h
src/msg/async/ProtocolV2.cc