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

Coverity 1393639, unused variable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.9, 4.0.1, 4.1.1, WT3.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Non-NYC 2018-07-02

      416        /* Wait while the dirty level is going down. */
      417        for (;;) {
      418                __wt_sleep(0, 100 * WT_THOUSAND);
      419
         	
      CID 1393639 (#1 of 1): Unused value (UNUSED_VALUE)
      returned_value: Assigning value from __wt_clock(session) to time_stop here, but that stored value is overwritten before it can be used.
      
      420                time_stop = __wt_clock(session);
      421                bytes_written_total =
      422                    cache->bytes_written - bytes_written_start;
      423
      424                prev_dirty = current_dirty;
      425                current_dirty =
      426                    (100.0 * __wt_cache_dirty_leaf_inuse(cache)) / cache_size;
      427                if (current_dirty <= cache->eviction_checkpoint_target ||
      428                    current_dirty >= prev_dirty)
      429                        break;
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: