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

Pessimizing move warning in chunktests.cpp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.8
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 14 (05/13/16), Sharding 15 (06/03/16)

      Description

      It looks like the warning was introduced via SERVER-24071.

      src/mongo/s/chunk_manager.cpp:199:34: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
                      _chunkRangeMap = std::move(_constructRanges(_chunkMap));
                                       ^
      src/mongo/s/chunk_manager.cpp:199:34: note: remove std::move call here
                      _chunkRangeMap = std::move(_constructRanges(_chunkMap));
                                       ^~~~~~~~~~                           ~
      1 error generated.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kaloian.manassiev Kaloian Manassiev
              Reporter:
              kamran.khan Kamran K.
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: