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

Dead code in __wt_timing_stress_sleep_random

    • Storage Engines
    • 2
    • StorEng - Defined Pipeline

      It seems that we have some dead code here:

          /*
           * If there is a lot of cache pressure, don't let the sleep time get too large. If the cache is
           * totally full, return.
           */
          pct = 0.0;
          if (__wt_eviction_needed(session, false, false, &pct))
              max = 5;
          else
              max = 9;
          if (pct > 100.0)
              return;
      

      The pct value should never exceed 100.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: