diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-08-15 22:30:53 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-08-16 12:30:53 +1000 |
commit | 0e8a887c8c7281ab09c5c9d61a30defbdeb58bbf (patch) | |
tree | cbace0a3076eae4d88c1af1c7cd2c300319fb3da /src/os_common | |
parent | 8e3c4660dce3c4620aae65493241238d23e9a04a (diff) | |
download | mongo-0e8a887c8c7281ab09c5c9d61a30defbdeb58bbf.tar.gz |
WT-2822 panic mutex and other functions that cannot fail (#2952)
* The pthread mutex implementation of spinlocks lock/unlock functions didn't check the underlying pthread_mutex functions for failure. Panic if pthreads fails.
* Change condition mutex functions to not return errors.
* Change __wt_verbose() to not return errors.
* Make a final panic check before writing anything.
Diffstat (limited to 'src/os_common')
-rw-r--r-- | src/os_common/os_fhandle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/os_common/os_fhandle.c b/src/os_common/os_fhandle.c index 3466f0d4e9b..3fd5b5db773 100644 --- a/src/os_common/os_fhandle.c +++ b/src/os_common/os_fhandle.c @@ -187,7 +187,7 @@ __open_verbose( if (tmp->size != 0) WT_ERR(__wt_buf_catfmt(session, tmp, ")")); - ret = __wt_verbose(session, WT_VERB_FILEOPS, + __wt_verbose(session, WT_VERB_FILEOPS, "%s: file-open: type %s%s", name, file_type_tag, tmp->size == 0 ? "" : (char *)tmp->data); @@ -300,8 +300,7 @@ __wt_close(WT_SESSION_IMPL *session, WT_FH **fhp) *fhp = NULL; /* Track handle-close as a file operation, so open and close match. */ - WT_RET(__wt_verbose( - session, WT_VERB_FILEOPS, "%s: file-close", fh->name)); + __wt_verbose(session, WT_VERB_FILEOPS, "%s: file-close", fh->name); /* * If the reference count hasn't gone to 0, or if it's an in-memory |