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

Coverity analysis defect 123103: Using a moved object

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • QE 2022-10-17

      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_targeter.cpp:623: USE_AFTER_MOVE 123103 "shardId" is moved (indicated by "std::move(shardId)").
      /src/mongo/s/chunk_manager_targeter.cpp:623: USE_AFTER_MOVE 123103 "shardId" is used after it has been already moved.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: