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

Fix the implementation of feature flag for "using soft pointers in eviction server".

    • Storage Engines
    • 1
    • StorEng - 2025-02-04

      WT-13790 added a feature flag that switches on and off behavior introduced in WT-12644. However, one adjustment to the behavior was overlooked. Specifically, the switch of "goto" labels here:

      @@ -2017,12 +2073,14 @@ __evict_walk_prepare(WT_SESSION_IMPL *session, uint32_t *walk_flagsp)
           case WT_EVICT_WALK_NEXT:
               /* Each time when evict_ref is null, alternate between linear and random walk */
               if (btree->evict_ref == NULL && (++btree->linear_walk_restarts) & 1)
      -            goto rand_next;
      +            /* Alternate with rand_prev so that the start of the tree is visited more often */
      +            goto rand_prev;
               break;
           case WT_EVICT_WALK_PREV:
               /* Each time when evict_ref is null, alternate between linear and random walk */
               if (btree->evict_ref == NULL && (++btree->linear_walk_restarts) & 1)
      -            goto rand_prev;
      +            /* Alternate with rand_next so that the end of the tree is visited more often */
      +            goto rand_next;
               FLD_SET(*walk_flagsp, WT_READ_PREV);
               break;
      

        1. screenshot-1.png
          screenshot-1.png
          163 kB
        2. screenshot-2.png
          screenshot-2.png
          322 kB
        3. screenshot-3.png
          screenshot-3.png
          346 kB
        4. screenshot-4.png
          screenshot-4.png
          243 kB
        5. screenshot-5.png
          screenshot-5.png
          260 kB

            Assignee:
            y.ershov@mongodb.com Yury Ershov
            Reporter:
            y.ershov@mongodb.com Yury Ershov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: