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

Coverity analysis defect 123323: Using a moved object

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17

    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/s/chunk_manager.cpp:936: USE_AFTER_MOVE 123323 "shardVersion" is moved (indicated by "std::move(shardVersion)").
      /src/mongo/s/chunk_manager.cpp:939: USE_AFTER_MOVE 123323 "shardVersion" is used after it has been already moved.

      Attachments

        Activity

          People

            paolo.polato@mongodb.com Paolo Polato
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: