From 10772199475a597486fa9d551983207e26971fbe Mon Sep 17 00:00:00 2001 From: Susan LoVerso Date: Wed, 28 Jan 2015 10:31:51 -0500 Subject: Adjust logging yield and timeout values. #1610 --- src/log/log.c | 4 ++-- src/log/log_slot.c | 4 ++-- 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); } -- cgit v1.2.3