summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-02-23 17:22:54 -0500
committerSusan LoVerso <sue@wiredtiger.com>2015-02-23 17:22:54 -0500
commitfbbfad63c007187a07fcd2d14eabf63e41893d59 (patch)
treec0044fa01a2e34a568415c65074fbfae02bf256c /src
parent9204c0231c2acf21d144e34cb073793fa6992555 (diff)
downloadmongo-fbbfad63c007187a07fcd2d14eabf63e41893d59.tar.gz
Coverity 44238, redundant test.
Diffstat (limited to 'src')
-rw-r--r--src/log/log_slot.c3
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;