From 6b451cc0ba438b02de0824edc5faa2bfd267ad39 Mon Sep 17 00:00:00 2001 From: Suyash Dongre Date: Fri, 10 May 2024 22:43:42 +0530 Subject: [PATCH] current_status is being used after moving. clang-tidy was re-ran on the file and the warning now no longer pops up. Fixes: https://tracker.ceph.com/issues/65963 Signed-off-by: Suyash Dongre --- src/rgw/driver/rados/rgw_rest_log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/driver/rados/rgw_rest_log.cc b/src/rgw/driver/rados/rgw_rest_log.cc index 9c0467ec36a..9315dfc0afd 100644 --- a/src/rgw/driver/rados/rgw_rest_log.cc +++ b/src/rgw/driver/rados/rgw_rest_log.cc @@ -1101,7 +1101,7 @@ void RGWOp_BILog_Status::execute(optional_yield y) } if (status.inc_status.empty()) { - status.inc_status = std::move(current_status); + std::swap(status.inc_status, current_status); } else { if (current_status.size() != status.inc_status.size()) { op_ret = -EINVAL; -- 2.39.5