diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/format/backup.c')
-rw-r--r-- | src/third_party/wiredtiger/test/format/backup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/format/backup.c b/src/third_party/wiredtiger/test/format/backup.c index b16835c7eec..ca87d27f098 100644 --- a/src/third_party/wiredtiger/test/format/backup.c +++ b/src/third_party/wiredtiger/test/format/backup.c @@ -45,9 +45,7 @@ check_copy(void) path = dmalloc(len); testutil_check(__wt_snprintf(path, len, "%s/BACKUP", g.home)); - wts_open(path, false, &conn, true); - - testutil_checkfmt(conn->open_session(conn, NULL, NULL, &session), "%s", path); + wts_open(path, &conn, &session, true); /* * Verify can return EBUSY if the handle isn't available. Don't yield and retry, in the case of @@ -56,7 +54,7 @@ check_copy(void) ret = session->verify(session, g.uri, NULL); testutil_assertfmt(ret == 0 || ret == EBUSY, "WT_SESSION.verify: %s: %s", path, g.uri); - testutil_checkfmt(conn->close(conn, NULL), "%s", path); + wts_close(&conn, &session); free(path); } |