Swap the WT_EVICT_CACHE_CLEAN and WT_BTREE_READONLY to reduce instruction count

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Transactions
    • SE Transactions - 2025-10-24
    • 1

      WT_BTREE_READONLY is unlikely to be true in ASC. Therefore, we should swap the two checks here to reduce the perf impact on ASC:

              /* Skip read-only btrees if we are not looking for clean pages. */
              if (!F_ISSET(evict, WT_EVICT_CACHE_CLEAN) && F_ISSET(btree, WT_BTREE_READONLY)) {
                  WT_STAT_CONN_INCR(session, eviction_server_skip_trees_read_only);
                  continue;
              }
      

            Assignee:
            Chenhao Qu
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: