summaryrefslogtreecommitdiff
path: root/test/salvage
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-07-29 20:46:27 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-07-29 20:46:27 +1000
commit7ef8aec8af71970db3777406c978b6b1baa2efbd (patch)
tree5587723cb101a406e7488846dc82a6c37d0a98a7 /test/salvage
parent790469ff71f6ed0fa5fefd2fd988ed116a50764f (diff)
downloadmongo-7ef8aec8af71970db3777406c978b6b1baa2efbd.tar.gz
Disable logging in test/salvage.
Diffstat (limited to 'test/salvage')
-rw-r--r--test/salvage/salvage.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/salvage/salvage.c b/test/salvage/salvage.c
index 2486d18e439..74fcc52f352 100644
--- a/test/salvage/salvage.c
+++ b/test/salvage/salvage.c
@@ -456,7 +456,12 @@ build(int ikey, int ivalue, int cnt)
char config[256], kbuf[64], vbuf[64];
int new_slvg;
- assert(wiredtiger_open(NULL, NULL, "create", &conn) == 0);
+ /*
+ * Disable logging: we're modifying files directly, we don't want to
+ * run recovery.
+ */
+ assert(wiredtiger_open(
+ NULL, NULL, "create,log=(enabled=false)", &conn) == 0);
assert(conn->open_session(conn, NULL, NULL, &session) == 0);
assert(session->drop(session, "file:" LOAD, "force") == 0);
@@ -603,7 +608,9 @@ process(void)
config[0] = '\0';
if (verbose)
snprintf(config, sizeof(config),
- "error_prefix=\"%s\",verbose=[salvage,verify]",
+ "error_prefix=\"%s\","
+ "log=(enabled=false),"
+ "verbose=[salvage,verify]",
progname);
assert(wiredtiger_open(NULL, NULL, config, &conn) == 0);
assert(conn->open_session(conn, NULL, NULL, &session) == 0);