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

Coverity analysis defect 122940: Using a moved object

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31, Sharding EMEA 2022-11-14

    Description

      Using a moved object

      Using a moved object may lead to an unexpected/undefined behavior. An object is used after it's moved.
      /src/mongo/db/s/move_primary_source_manager.cpp:65: USE_AFTER_MOVE 122940 "fromShard" is moved (indicated by "std::move(fromShard)").
      /src/mongo/db/s/move_primary_source_manager.cpp:67: USE_AFTER_MOVE 122940 "fromShard" is used after it has been already moved.

      Attachments

        Activity

          People

            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: