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

fix pessimizing move in batch_executor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.2.5, 3.3.3
    • Write Ops
    • Fully Compatible
    • ALL
    • Repl 11 (03/11/16)

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: