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

Coverity analysis defect 134237: Using a moved object

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-12-12

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

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: