summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/log/log.c
diff options
context:
space:
mode:
authorGreg McKeon <greg.mckeon@mongodb.com>2017-11-17 18:49:42 -0500
committerGreg McKeon <greg.mckeon@mongodb.com>2017-11-17 18:49:42 -0500
commitc85b31b5d392b71cabf87bac1ac229a5a9ad62b4 (patch)
tree0e38e9ab2bf7f4f823c6569dbaf739e2c2993bc5 /src/third_party/wiredtiger/src/log/log.c
parent770b4bfe6d7f11d50d79fab08c0764a8e6b866fe (diff)
downloadmongo-c85b31b5d392b71cabf87bac1ac229a5a9ad62b4.tar.gz
Revert "Revert "Import wiredtiger: fd0c611577e38687455cee311cc279bec16651ea from branch mongodb-3.8""
This reverts commit 770b4bfe6d7f11d50d79fab08c0764a8e6b866fe.
Diffstat (limited to 'src/third_party/wiredtiger/src/log/log.c')
-rw-r--r--src/third_party/wiredtiger/src/log/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/log/log.c b/src/third_party/wiredtiger/src/log/log.c
index 4c32b9b02ed..17c77f532bb 100644
--- a/src/third_party/wiredtiger/src/log/log.c
+++ b/src/third_party/wiredtiger/src/log/log.c
@@ -2658,8 +2658,10 @@ __wt_log_flush(WT_SESSION_IMPL *session, uint32_t flags)
* Wait until all current outstanding writes have been written
* to the file system.
*/
- while (__wt_log_cmp(&last_lsn, &lsn) > 0)
+ while (__wt_log_cmp(&last_lsn, &lsn) > 0) {
+ __wt_sleep(0, WT_THOUSAND);
WT_RET(__wt_log_flush_lsn(session, &lsn, false));
+ }
__wt_verbose(session, WT_VERB_LOG,
"log_flush: flags %#" PRIx32 " LSN %" PRIu32 "/%" PRIu32,