]> git-server-git.apps.pok.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>
Wed, 17 Jun 2020 19:56:47 +0000 (21:56 +0200)
commite6e3563d07181da043c0f8a7417c7a592af0c298
tree46e6539aa99610e6850d4fd793798ec05b13010c
parent0b3f4c6357701855559ee45add613e7456ceae05
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>
src/msg/async/ProtocolV2.cc
src/msg/async/ProtocolV2.h