diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-04-01 15:50:16 +1100 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-04-01 15:50:16 +1100 |
commit | a2dec6e48b269db78f94260a5f6f174404affa4a (patch) | |
tree | 4ba83c2204f623e36fb6d506904fb782f99ffff5 /src/os_win/os_thread.c | |
parent | 385b126a7d517afd7eb711b04d71bb3b5a03c917 (diff) | |
parent | 357bf28ba3fc1d5902b429a9e634015187f648ed (diff) | |
download | mongo-a2dec6e48b269db78f94260a5f6f174404affa4a.tar.gz |
Merge pull request #2603 from wiredtiger/wt-2330
WT-2330: in-memory configurations should not create on-disk collection files
Diffstat (limited to 'src/os_win/os_thread.c')
-rw-r--r-- | src/os_win/os_thread.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/os_win/os_thread.c b/src/os_win/os_thread.c index 3be0ccb9393..94c5a8b0ab2 100644 --- a/src/os_win/os_thread.c +++ b/src/os_win/os_thread.c @@ -21,7 +21,7 @@ __wt_thread_create(WT_SESSION_IMPL *session, if (*tidret != 0) return (0); - WT_RET_MSG(session, errno, "_beginthreadex"); + WT_RET_MSG(session, __wt_errno, "thread create: _beginthreadex"); } /* @@ -37,12 +37,13 @@ __wt_thread_join(WT_SESSION_IMPL *session, wt_thread_t tid) /* * If we fail to wait, we will leak handles so do not continue */ - WT_PANIC_RET(session, ret == WAIT_FAILED ? __wt_errno() : ret, - "Wait for thread join failed"); + WT_PANIC_RET(session, + ret == WAIT_FAILED ? __wt_getlasterror() : ret, + "thread join: WaitForSingleObject"); if (CloseHandle(tid) == 0) { - WT_RET_MSG(session, __wt_errno(), - "CloseHandle: thread join"); + WT_RET_MSG(session, + __wt_getlasterror(), "thread join: CloseHandle"); } return (0); @@ -53,7 +54,7 @@ __wt_thread_join(WT_SESSION_IMPL *session, wt_thread_t tid) * Fill in a printable version of the process and thread IDs. */ void -__wt_thread_id(char* buf, size_t buflen) +__wt_thread_id(char *buf, size_t buflen) { (void)snprintf(buf, buflen, "%" PRIu64 ":%" PRIu64, |