]> 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>
Tue, 23 Jun 2020 07:21:48 +0000 (09:21 +0200)
commit64f7ad7e20192f6546b717bcb76a6f502effdcdd
treebd7cd46c8412cc5d00ccf66295550cad52011a19
parent9626953ac6860235ced55e82f93473d1ba6aa2c7
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