Skip to content

Commit f019f88

Browse files
committed
SERVER-22947 fix pessimizing move in batch_executor
1 parent aee9f7e commit f019f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/db/commands/write_commands/batch_executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void WriteBatchExecutor::executeBatch(const BatchedCommandRequest& request,
341341
_txn->getWriteConcern(),
342342
&res);
343343
if (!status.isOK()) {
344-
wcError = std::move(toWriteConcernError(status, res));
344+
wcError = toWriteConcernError(status, res);
345345
}
346346

347347
//

0 commit comments

Comments
 (0)