Navigation Menu

Skip to content

Commit

Permalink
WT-2283 Add yield to avoid tight looping.
Browse files Browse the repository at this point in the history
  • Loading branch information
sueloverso committed Dec 10, 2015
1 parent 6bd151a commit 9768cf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/txn/txn.c
Expand Up @@ -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) &&
Expand Down

0 comments on commit 9768cf6

Please sign in to comment.