summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/log/log.c
diff options
context:
space:
mode:
authorClarisse Cheah <clarisse.cheah@mongodb.com>2023-01-09 01:20:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-09 02:00:21 +0000
commit2832fd105188727ddfd3f77370cb344257bf8518 (patch)
tree5881124596f0873e34af63135049423838d2d8d5 /src/third_party/wiredtiger/src/log/log.c
parent4d30c6111ae6cdc7f6f60656af0e4b632ac6c0a4 (diff)
downloadmongo-2832fd105188727ddfd3f77370cb344257bf8518.tar.gz
Import wiredtiger: 91e10012b2b3d4a75419d2635863a67d523eae3c from branch mongodb-master
ref: 843032e989..91e10012b2 for: 6.3.0-rc0 WT-10438 Literal values use WT defines whenever possible.
Diffstat (limited to 'src/third_party/wiredtiger/src/log/log.c')
-rw-r--r--src/third_party/wiredtiger/src/log/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/log/log.c b/src/third_party/wiredtiger/src/log/log.c
index 4e41debea52..9c399a535e3 100644
--- a/src/third_party/wiredtiger/src/log/log.c
+++ b/src/third_party/wiredtiger/src/log/log.c
@@ -359,7 +359,7 @@ __wt_log_force_sync(WT_SESSION_IMPL *session, WT_LSN *min_lsn)
*/
while (log->sync_lsn.l.file < min_lsn->l.file) {
__wt_cond_signal(session, S2C(session)->log_file_cond);
- __wt_cond_wait(session, log->log_sync_cond, 10000, NULL);
+ __wt_cond_wait(session, log->log_sync_cond, 10 * WT_THOUSAND, NULL);
}
__wt_spin_lock(session, &log->log_sync_lock);
@@ -1977,7 +1977,7 @@ __wt_log_release(WT_SESSION_IMPL *session, WT_LOGSLOT *slot, bool *freep)
*/
if (log->sync_lsn.l.file < slot->slot_end_lsn.l.file ||
__wt_spin_trylock(session, &log->log_sync_lock) != 0) {
- __wt_cond_wait(session, log->log_sync_cond, 10000, NULL);
+ __wt_cond_wait(session, log->log_sync_cond, 10 * WT_THOUSAND, NULL);
continue;
}
locked = true;
@@ -2702,11 +2702,11 @@ __log_write_internal(WT_SESSION_IMPL *session, WT_ITEM *record, WT_LSN *lsnp, ui
if (LF_ISSET(WT_LOG_FLUSH)) {
/* Wait for our writes to reach the OS */
while (__wt_log_cmp(&log->write_lsn, &lsn) <= 0 && myslot.slot->slot_error == 0)
- __wt_cond_wait(session, log->log_write_cond, 10000, NULL);
+ __wt_cond_wait(session, log->log_write_cond, 10 * WT_THOUSAND, NULL);
} else if (LF_ISSET(WT_LOG_FSYNC)) {
/* Wait for our writes to reach disk */
while (__wt_log_cmp(&log->sync_lsn, &lsn) <= 0 && myslot.slot->slot_error == 0)
- __wt_cond_wait(session, log->log_sync_cond, 10000, NULL);
+ __wt_cond_wait(session, log->log_sync_cond, 10 * WT_THOUSAND, NULL);
}
err: