[SERVER-22947] fix pessimizing move in batch_executor Created: 03/Mar/16  Updated: 21/Nov/16  Resolved: 04/Mar/16

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 3.2.5, 3.3.3

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Repl 11 (03/11/16)
Participants:

 Description   

src/mongo/db/commands/write_commands/batch_executor.cpp:344:19: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
        wcError = std::move(toWriteConcernError(status, res));
                  ^
src/mongo/db/commands/write_commands/batch_executor.cpp:344:19: note: remove std::move call here
        wcError = std::move(toWriteConcernError(status, res));
                  ^~~~~~~~~~                                ~



 Comments   
Comment by Githook User [ 10/Mar/16 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-22947 fix pessimizing move in batch_executor

(cherry picked from commit f019f88f05005db2e34a71741e07a205d2100535)
Branch: v3.2
https://github.com/mongodb/mongo/commit/67c772bd2d8d6114556d269bf632cf13c366641a

Comment by Githook User [ 04/Mar/16 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-22947 fix pessimizing move in batch_executor
Branch: master
https://github.com/mongodb/mongo/commit/f019f88f05005db2e34a71741e07a205d2100535

Generated at Thu Feb 08 04:01:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.