]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
forwarding reference passed to std::move() 59490/head
authorSuyash Dongre <suyashd999@gmail.com>
Wed, 28 Aug 2024 19:28:57 +0000 (00:58 +0530)
committerSuyash Dongre <suyashd999@gmail.com>
Wed, 28 Aug 2024 19:28:57 +0000 (00:58 +0530)
commit81fb5ae24328e33fbfe49599b8826f43a72d01a0
tree0811cf30a5846d95ff743f31f27effe26e0181f2
parent15cbae0a2745e79e6a39d694b39e5140428c3148
forwarding reference passed to std::move()

Fixes: https://tracker.ceph.com/issues/67781
clang-tidy original warning:

warning: forwarding reference passed to std::move(), which may unexpectedly cause lvalues to be moved; use std::forward() instead [bugprone-move-forwarding-reference]
return [ctx = std::move(ctx), op = std::move(op), trace_ctx] (Aio* aio, AioResult& r) mutable {
^~~~~~~~~
std::forward<Op>

Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
src/rgw/rgw_aio.cc