summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-01-28 10:31:51 -0500
committerSusan LoVerso <sue@wiredtiger.com>2015-01-28 11:23:49 -0500
commit10772199475a597486fa9d551983207e26971fbe (patch)
tree2bfea9013d299112f1b2a07d84fc88b35f113271
parentd38a68b79f69476b592c84ed50eec20ef535fab1 (diff)
downloadmongodb-2.8-rc7.tar.gz
Adjust logging yield and timeout values. #1610mongodb-2.8-rc7
-rw-r--r--src/log/log.c4
-rw-r--r--src/log/log_slot.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/log/log.c b/src/log/log.c
index 5e1256aec07..cf6d011571f 100644
--- a/src/log/log.c
+++ b/src/log/log.c
@@ -881,11 +881,11 @@ __log_release(WT_SESSION_IMPL *session, WT_LOGSLOT *slot)
* in the log file.
*/
while (LOG_CMP(&log->write_lsn, &slot->slot_release_lsn) != 0) {
- if (++yield_count < 100)
+ if (++yield_count < 1000)
__wt_yield();
else
WT_ERR(__wt_cond_wait(
- session, log->log_write_cond, 2000));
+ session, log->log_write_cond, 200));
}
log->write_lsn = slot->slot_end_lsn;
WT_ERR(__wt_cond_signal(session, log->log_write_cond));
diff --git a/src/log/log_slot.c b/src/log/log_slot.c
index 611587aaa8e..ff61afb698c 100644
--- a/src/log/log_slot.c
+++ b/src/log/log_slot.c
@@ -266,10 +266,10 @@ __wt_log_slot_wait(WT_SESSION_IMPL *session, WT_LOGSLOT *slot)
WT_UNUSED(session);
while (slot->slot_state > WT_LOG_SLOT_DONE)
- if (++yield_count < 100)
+ if (++yield_count < 1000)
__wt_yield();
else
- __wt_sleep(0, 2000);
+ __wt_sleep(0, 200);
return (0);
}