Skip to content

Commit 2f6db35

Browse files
authored
Merge pull request ceph#57409 from Suyashd999/fix-uam1
current_status is being used after moving. Reviewed-by: Yuval Lifshitz <[email protected]>
2 parents 744b88c + 6b451cc commit 2f6db35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_rest_log.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ void RGWOp_BILog_Status::execute(optional_yield y)
11011101
}
11021102

11031103
if (status.inc_status.empty()) {
1104-
status.inc_status = std::move(current_status);
1104+
std::swap(status.inc_status, current_status);
11051105
} else {
11061106
if (current_status.size() != status.inc_status.size()) {
11071107
op_ret = -EINVAL;

0 commit comments

Comments
 (0)