Skip to content

Commit 425fc4d

Browse files
committed
msg/async/AsyncConnection: move the writeCallback instead of copying it
Signed-off-by: Max Kellermann <[email protected]>
1 parent c72dae9 commit 425fc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/msg/async/AsyncConnection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ ssize_t AsyncConnection::write(ceph::buffer::list &bl,
310310
outgoing_bl.claim_append(bl);
311311
ssize_t r = _try_send(more);
312312
if (r > 0) {
313-
writeCallback = callback;
313+
writeCallback = std::move(callback);
314314
}
315315
return r;
316316
}

0 commit comments

Comments
 (0)