Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12857

Check the debug flags only in diagnostic build

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

          /*
           * 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:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: