Check the debug flags only in diagnostic build

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline
    • None

          /*
           * This is an expensive call on a performance-critical path, so we only want to enable it behind
           * the stress_skiplist session flag.
           */
          if (FLD_ISSET(S2C(session)->debug_flags, WT_CONN_DEBUG_STRESS_SKIPLIST))
              WT_RET(__validate_next_stack(session, cbt->next_stack, srch_key));
      

      We have this code in this code path to reduce its overhead to the performance critical code path. We can do more to consider only enable and check the debug_flags for the diagnostic build.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: