Skip to content

Commit

Permalink
Merge pull request ceph#18190 from JustL/master
Browse files Browse the repository at this point in the history
msg/async/rdma: unnecessary reinitiliazation of an iterator

Reviewed-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 authored Oct 9, 2017
2 parents 0260bc5 + fa13eaf commit 765259a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/rdma/RDMAConnectedSocketImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ int RDMAConnectedSocketImpl::post_work_request(std::vector<Chunk*> &tx_buffers)

memset(iswr, 0, sizeof(iswr));
memset(isge, 0, sizeof(isge));
current_buffer = tx_buffers.begin();

while (current_buffer != tx_buffers.end()) {
isge[current_sge].addr = reinterpret_cast<uint64_t>((*current_buffer)->buffer);
isge[current_sge].length = (*current_buffer)->get_offset();
Expand Down

0 comments on commit 765259a

Please sign in to comment.