]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: short circuit empty segments and epilogue
authorIlya Dryomov <idryomov@gmail.com>
Mon, 11 May 2020 12:06:44 +0000 (14:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Jul 2020 12:45:35 +0000 (14:45 +0200)
commit08c9101d363b3b5e6724e55d0801a4408bfc424f
tree779f19ceffe1abd73b047a3b728e7bc7ae5948d6
parented0c903c0e539e5587fcd4561a972a43fa4de39b
msg/async/ProtocolV2: short circuit empty segments and epilogue

In both msgr2.0 and msgr2.1, segments can be empty.  In msgr2.1,
epilogue can be empty as well.

Handle both by calling the respective handler function directly
instead of allocating a buffer::ptr_node for an empty buffer and
passing that through READ[_RXBUF].

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit e6e3563d07181da043c0f8a7417c7a592af0c298)
src/msg/async/ProtocolV2.cc
src/msg/async/ProtocolV2.h