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;
|