summaryrefslogtreecommitdiff
path: root/test/checkpoint/checkpointer.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-16 08:34:09 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-16 08:34:09 -0400
commitb15a01951feadb497ea831f45ae39e944e1f6474 (patch)
tree0f43013bc0ee7844a21e1a711a6d741f6b0d682b /test/checkpoint/checkpointer.c
parent3a174f569b21e614b54ce068cb112d1744fbb3e3 (diff)
downloadmongo-b15a01951feadb497ea831f45ae39e944e1f6474.tar.gz
Typo, calling log_print_err() with the wrong return error value.
Typo, verify_checkpoint wasn't returning the final error status.
Diffstat (limited to 'test/checkpoint/checkpointer.c')
-rw-r--r--test/checkpoint/checkpointer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/checkpoint/checkpointer.c b/test/checkpoint/checkpointer.c
index 9f12e323878..57478350b52 100644
--- a/test/checkpoint/checkpointer.c
+++ b/test/checkpoint/checkpointer.c
@@ -188,7 +188,7 @@ verify_checkpoint(WT_SESSION *session)
continue;
t_ret = cursors[i]->next(cursors[i]);
if (t_ret != 0 && t_ret != WT_NOTFOUND) {
- (void)log_print_err("cursor->next", ret, 1);
+ (void)log_print_err("cursor->next", t_ret, 1);
goto err;
}
@@ -224,7 +224,7 @@ err: for (i = 0; i < g.ntables; i++) {
"verify_checkpoint:cursor close", ret, 1);
}
free(cursors);
- return (0);
+ return (ret);
}
/*