]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: use Chunk::get_size to get chunk size
authorChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 13 Jun 2019 11:04:40 +0000 (19:04 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:22 +0000 (10:45 +0800)
commitf1668da1ce6554f0eda075373345c9bd052226e0
tree1c5df68d4c92ed86a859486d01a6863d82ef9ffa
parent2d4890580f3acdd6387bcdde15f78eba35237589
msg/async/rdma: use Chunk::get_size to get chunk size

remove Chunk::over interface and add Chunk::get_size interface
1) It's not clear when reading "over" function name.
2) Some places need know the current chunk block effective content size.
3) "Chunk::over()" could be replaced by "Chunk::get_size() == 0"

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc
src/msg/async/rdma/Infiniband.h
src/msg/async/rdma/RDMAConnectedSocketImpl.cc