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

fix pessimizing move in batch_executor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.5, 3.3.3
    • Component/s: Write Ops
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: