Dead code in __wt_timing_stress_sleep_random

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations, Storage Engines - Persistence
    • StorEng - Defined Pipeline
    • 2

      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:
            Jasmine Bi
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: