[v7.0] Coverity analysis defect 176575: Using a moved object

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/query/canonical_query.cpp:89: USE_AFTER_MOVE 176575 "givenExpCtx" is moved (indicated by "std::move(givenExpCtx)").
      /src/mongo/db/query/canonical_query.cpp:89: USE_AFTER_MOVE 176575 Returning while reference parameter "givenExpCtx" is in a moved state.

            Assignee:
            Ben Shteinfeld
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: