make query optimizer code not access data in constructor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Blocker - P1
    • 2.1.2
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If you look in src/mongo/util/stack_introspect.cpp
      you'll see this:

      if ( method == "MultiPlanScanner" ||
      method == "QueryPlan" ||
      method == "QueryPlanSet" ||
      method == "QueryOptimizerCursorImpl" ||
      method == "QueryPlanGenerator" )
      return false;

      if you remove those lines, you'll get fasserts when running tests

      to fix, we can't access data in constructors

            Assignee:
            Aaron Staple (Inactive)
            Reporter:
            Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: