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

Use after std::move in bool_expression

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization
    • ALL

    Description

      The {{value} variable is used after moved here:

                  if (isCurrentlyNegated()) {
                      value = Negator{}(std::move(value));
                  }
                  _result = make<Atom>(std::move(value));
      

      This ticket should investigate whether the first path is actually possible to hit, as the initial code coverage data seems to indicate that we don't have any tests which exercise it.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: