mirror of
https://github.com/ceph/ceph
synced 2025-01-18 09:02:08 +00:00
crimson/net: move from out_q into sent queue
to avoid the refcounting of underlying RefCountedObject. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
523fcb711f
commit
7d6c43d81c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user