summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-06-18 13:53:44 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-06-20 15:32:47 +1000
commitf3ab36014fe49487fdb791d468811e33ec8b354b (patch)
treefac4a6cb582a35e9398535d98061e9beba4573da /test
parenta7dc715a834b3d1d2c5eb3e521ccd10b9ba0ed3a (diff)
downloadmongo-f3ab36014fe49487fdb791d468811e33ec8b354b.tar.gz
Fix __wt_conn_btree_apply to acquire handles correctly,
pass WT_BTREE_SNAPSHOT_OP from checkpoint code.
Diffstat (limited to 'test')
-rw-r--r--test/format/wts_ops.c8
-rw-r--r--test/thread/t.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/test/format/wts_ops.c b/test/format/wts_ops.c
index 0ec003d186a..7e28f029ab7 100644
--- a/test/format/wts_ops.c
+++ b/test/format/wts_ops.c
@@ -171,10 +171,10 @@ ops(void *arg)
WT_TABLENAME, sync_name);
sync_drop = 0;
} else {
- if ((ret = session->sync(
- session, WT_TABLENAME, sync_name)) != 0)
- die(ret, "session.sync: %s: %s",
- WT_TABLENAME, sync_name);
+ if ((ret = session->checkpoint(
+ session, sync_name)) != 0)
+ die(ret, "session.checkpoint: %s",
+ sync_name);
sync_drop = 1;
}
diff --git a/test/thread/t.c b/test/thread/t.c
index 554c624073b..0f40e0424e4 100644
--- a/test/thread/t.c
+++ b/test/thread/t.c
@@ -163,8 +163,8 @@ wt_shutdown(void)
if ((ret = session->verify(session, FNAME, NULL)) != 0)
die("session.verify", ret);
- if ((ret = session->sync(session, FNAME, NULL)) != 0)
- die("session.sync", ret);
+ if ((ret = session->checkpoint(session, NULL)) != 0)
+ die("session.checkpoint", ret);
if ((ret = conn->close(conn, NULL)) != 0)
die("conn.close", ret);