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/cursor/cur_log.c | |
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/cursor/cur_log.c')
-rw-r--r-- | src/cursor/cur_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cursor/cur_log.c b/src/cursor/cur_log.c index 2adf0c2b8ab..76f31b417a6 100644 --- a/src/cursor/cur_log.c +++ b/src/cursor/cur_log.c @@ -323,7 +323,7 @@ __curlog_close(WT_CURSOR *cursor) WT_ASSERT(session, FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED)); if (F_ISSET(cl, WT_CURLOG_ARCHIVE_LOCK)) - WT_TRET(__wt_readunlock(session, conn->log->log_archive_lock)); + __wt_readunlock(session, conn->log->log_archive_lock); __wt_free(session, cl->cur_lsn); __wt_free(session, cl->next_lsn); @@ -401,7 +401,7 @@ __wt_curlog_open(WT_SESSION_IMPL *session, WT_ERR(__wt_log_force_write(session, 1, NULL)); /* Log cursors block archiving. */ - WT_ERR(__wt_readlock(session, log->log_archive_lock)); + __wt_readlock(session, log->log_archive_lock); F_SET(cl, WT_CURLOG_ARCHIVE_LOCK); if (0) { |