diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2015-02-23 17:22:54 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2015-02-23 17:22:54 -0500 |
commit | fbbfad63c007187a07fcd2d14eabf63e41893d59 (patch) | |
tree | c0044fa01a2e34a568415c65074fbfae02bf256c /src | |
parent | 9204c0231c2acf21d144e34cb073793fa6992555 (diff) | |
download | mongo-fbbfad63c007187a07fcd2d14eabf63e41893d59.tar.gz |
Coverity 44238, redundant test.
Diffstat (limited to 'src')
-rw-r--r-- | src/log/log_slot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/log/log_slot.c b/src/log/log_slot.c index ff61afb698c..8dcb2f9f165 100644 --- a/src/log/log_slot.c +++ b/src/log/log_slot.c @@ -203,8 +203,7 @@ retry: * churn is used to change how long we pause before closing * the slot - which leads to more consolidation and less churn. */ - if (++switch_fails % SLOT_POOL == 0 && - switch_fails != 0 && slot->slot_churn < 5) + if (++switch_fails % SLOT_POOL == 0 && slot->slot_churn < 5) ++slot->slot_churn; __wt_yield(); goto retry; |