diff options
author | Greg McKeon <greg.mckeon@mongodb.com> | 2017-11-17 18:49:42 -0500 |
---|---|---|
committer | Greg McKeon <greg.mckeon@mongodb.com> | 2017-11-17 18:49:42 -0500 |
commit | c85b31b5d392b71cabf87bac1ac229a5a9ad62b4 (patch) | |
tree | 0e38e9ab2bf7f4f823c6569dbaf739e2c2993bc5 /src/third_party/wiredtiger/src/log/log.c | |
parent | 770b4bfe6d7f11d50d79fab08c0764a8e6b866fe (diff) | |
download | mongo-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.c | 4 |
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, |