Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22947

fix pessimizing move in batch_executor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.5, 3.3.3
    • Affects Version/s: None
    • Component/s: Write Ops
    • Fully Compatible
    • ALL
    • Repl 11 (03/11/16)

      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));
                        ^~~~~~~~~~                                ~
      

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: