From 9768cf6b90bfb0aeb448cfd3aa003cccbd02d218 Mon Sep 17 00:00:00 2001 From: Susan LoVerso Date: Thu, 10 Dec 2015 11:17:25 -0500 Subject: [PATCH] WT-2283 Add yield to avoid tight looping. --- src/txn/txn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/txn/txn.c b/src/txn/txn.c index 8bfc48c1690..ed3a3a85b8c 100644 --- a/src/txn/txn.c +++ b/src/txn/txn.c @@ -334,8 +334,10 @@ __wt_txn_update_oldest(WT_SESSION_IMPL *session, bool force) */ WT_ASSERT(session, txn_global->scan_count > 0); (void)__wt_atomic_subiv32(&txn_global->scan_count, 1); - if (force) + if (force) { + __wt_yield(); goto retry; + } } } else { if (WT_VERBOSE_ISSET(session, WT_VERB_TRANSACTION) &&