Skip to content

Commit

Permalink
Merge pull request ceph#41695 from tchaikov/wip-crimson-net-move
Browse files Browse the repository at this point in the history
crimson/net: move from out_q into sent queue

Reviewed-by: Amnon Hanuhov <ahanukov@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
  • Loading branch information
tchaikov authored Jun 7, 2021
2 parents 76d882b + 7d6c43d commit cf8814d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crimson/net/Protocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ ceph::bufferlist Protocol::sweep_messages_and_move_to_sent(
require_ack);
if (!conn.policy.lossy) {
conn.sent.insert(conn.sent.end(),
conn.out_q.begin(),
conn.out_q.end());
std::make_move_iterator(conn.out_q.begin()),
std::make_move_iterator(conn.out_q.end()));
}
conn.out_q.clear();
return bl;
Expand Down

0 comments on commit cf8814d

Please sign in to comment.