diff options
author | Jason Chan <jason.chan@mongodb.com> | 2022-08-19 17:42:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-19 18:36:07 +0000 |
commit | 9a07ecfd7e91d330fc4cf8ea8b08e2f2e75ec04e (patch) | |
tree | 19879258d0fe105699c9f51112af043d67c5eb04 | |
parent | aadd70eef054d7a0fdb557b557c1cb7c108c52a5 (diff) | |
download | mongo-9a07ecfd7e91d330fc4cf8ea8b08e2f2e75ec04e.tar.gz |
SERVER-68972 Fix warning in debug-mode about using std::move preventing copy elision
-rw-r--r-- | src/mongo/executor/hedged_remote_command_runner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/executor/hedged_remote_command_runner.h b/src/mongo/executor/hedged_remote_command_runner.h index 3eabd4a8af3..66f4a51d8d1 100644 --- a/src/mongo/executor/hedged_remote_command_runner.h +++ b/src/mongo/executor/hedged_remote_command_runner.h @@ -104,7 +104,7 @@ Future<SingleResponse> whenAnyThat(std::vector<ExecutorFuture<SingleResponse>>&& }); } - return std::move(future); + return future; } } // namespace |