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

make query optimizer code not access data in constructor

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

      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 Aaron Staple
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: