Skip to content

Commit

Permalink
WT-1962 Fix error handling of hotbackup unlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcahill committed Jul 13, 2015
1 parent 09e018c commit bfea549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/conn/conn_log.c
Expand Up @@ -167,7 +167,7 @@ __log_archive_once(WT_SESSION_IMPL *session, uint32_t backup_file)
if (0)
err: __wt_err(session, ret, "log archive server error");
if (locked)
WT_RET(__wt_readunlock(session, conn->hot_backup_lock));
WT_TRET(__wt_readunlock(session, conn->hot_backup_lock));
if (logfiles != NULL)
__wt_log_files_free(session, logfiles, logcount);
return (ret);
Expand Down
2 changes: 1 addition & 1 deletion src/txn/txn_ckpt.c
Expand Up @@ -1099,7 +1099,7 @@ nockpt: F_SET(btree, WT_BTREE_SKIP_CKPT);
btree->modified = 1;

if (hot_backup_locked)
WT_RET(__wt_readunlock(session, conn->hot_backup_lock));
WT_TRET(__wt_readunlock(session, conn->hot_backup_lock));

__wt_meta_ckptlist_free(session, ckptbase);
__wt_free(session, name_alloc);
Expand Down

0 comments on commit bfea549

Please sign in to comment.