Compile-time check for WT_DHANDLE_TYPE_NUM

XMLWordPrintableJSON

    • Storage Engines - Foundations
    • 202.548
    • SE Foundations - 2026-09-15
    • None

      WT_DHANDLE_TYPE_NUM is fragile and should be combined with a compile time static assertion to ensure it can't diverge from the correct number of dhandle types.

      Scope:

      • Add the static assert
      • Test by changing the dhandle type count and ensuring the assertion trips, i.e. code cannot compile

            Assignee:
            Yury Ershov
            Reporter:
            Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: