summaryrefslogtreecommitdiff
path: root/src/txn
diff options
context:
space:
mode:
Diffstat (limited to 'src/txn')
-rw-r--r--src/txn/txn_ckpt.c4
-rw-r--r--src/txn/txn_log.c3
-rw-r--r--src/txn/txn_nsnap.c7
3 files changed, 5 insertions, 9 deletions
diff --git a/src/txn/txn_ckpt.c b/src/txn/txn_ckpt.c
index 5406367c372..98ebcd24922 100644
--- a/src/txn/txn_ckpt.c
+++ b/src/txn/txn_ckpt.c
@@ -113,7 +113,7 @@ __checkpoint_apply_all(WT_SESSION_IMPL *session, const char *cfg[],
/* Step through the targets and optionally operate on each one. */
WT_ERR(__wt_config_gets(session, cfg, "target", &cval));
- WT_ERR(__wt_config_subinit(session, &targetconf, &cval));
+ __wt_config_subinit(session, &targetconf, &cval);
while ((ret = __wt_config_next(&targetconf, &k, &v)) == 0) {
if (!target_list) {
WT_ERR(__wt_scr_alloc(session, 512, &tmp));
@@ -1054,7 +1054,7 @@ __checkpoint_lock_tree(WT_SESSION_IMPL *session,
cval.len = 0;
WT_ERR(__wt_config_gets(session, cfg, "drop", &cval));
if (cval.len != 0) {
- WT_ERR(__wt_config_subinit(session, &dropconf, &cval));
+ __wt_config_subinit(session, &dropconf, &cval);
while ((ret =
__wt_config_next(&dropconf, &k, &v)) == 0) {
/* Disallow unsafe checkpoint names. */
diff --git a/src/txn/txn_log.c b/src/txn/txn_log.c
index c7d83d1db64..f9dd9bee807 100644
--- a/src/txn/txn_log.c
+++ b/src/txn/txn_log.c
@@ -450,11 +450,10 @@ __wt_txn_truncate_log(
* __wt_txn_truncate_end --
* Finish truncating a range of a file.
*/
-int
+void
__wt_txn_truncate_end(WT_SESSION_IMPL *session)
{
F_CLR(session, WT_SESSION_LOGGING_INMEM);
- return (0);
}
/*
diff --git a/src/txn/txn_nsnap.c b/src/txn/txn_nsnap.c
index 05c45c0dc38..d0110d9edd8 100644
--- a/src/txn/txn_nsnap.c
+++ b/src/txn/txn_nsnap.c
@@ -220,8 +220,7 @@ __wt_txn_named_snapshot_drop(WT_SESSION_IMPL *session, const char *cfg[])
/* We are done if there are no named drops */
if (names_config.len != 0) {
- WT_RET(__wt_config_subinit(
- session, &objectconf, &names_config));
+ __wt_config_subinit(session, &objectconf, &names_config);
while ((ret = __wt_config_next(&objectconf, &k, &v)) == 0) {
ret = __nsnap_drop_one(session, &k);
if (ret != 0)
@@ -352,7 +351,7 @@ __wt_txn_named_snapshot_config(WT_SESSION_IMPL *session,
* __wt_txn_named_snapshot_destroy --
* Destroy all named snapshots on connection close
*/
-int
+void
__wt_txn_named_snapshot_destroy(WT_SESSION_IMPL *session)
{
WT_NAMED_SNAPSHOT *nsnap;
@@ -365,6 +364,4 @@ __wt_txn_named_snapshot_destroy(WT_SESSION_IMPL *session)
TAILQ_REMOVE(&txn_global->nsnaph, nsnap, q);
__nsnap_destroy(session, nsnap);
}
-
- return (0);
}