diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-27 12:30:57 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-27 12:30:57 +1100 |
commit | c58c24aae4cf78ea0bbf3851225d6488c1bd7694 (patch) | |
tree | 3633c39cdf562e711b19bc571d161d2d5b7d6f51 | |
parent | 25656615dcf39bc84264a766b2bf1ab8399d63e1 (diff) | |
download | mongo-c58c24aae4cf78ea0bbf3851225d6488c1bd7694.tar.gz |
Revert unnecessary test changes.
-rw-r--r-- | test/salvage/salvage.c | 10 | ||||
-rw-r--r-- | test/suite/test_checkpoint01.py | 7 |
2 files changed, 4 insertions, 13 deletions
diff --git a/test/salvage/salvage.c b/test/salvage/salvage.c index 71c4944970f..eda47d08283 100644 --- a/test/salvage/salvage.c +++ b/test/salvage/salvage.c @@ -461,10 +461,8 @@ build(int ikey, int ivalue, int cnt) * Disable logging: we're modifying files directly, we don't want to * run recovery. */ - (void)snprintf(config, sizeof(config), - "create,log=(enabled=false),buffer_alignment=%d", PSIZE); assert(wiredtiger_open( - NULL, NULL, config, &conn) == 0); + 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); @@ -605,15 +603,15 @@ process(void) WT_CURSOR *cursor; const char *key, *value; WT_SESSION *session; - char config[256]; + char config[100]; /* Salvage. */ config[0] = '\0'; if (verbose) - (void)snprintf(config, sizeof(config), + snprintf(config, sizeof(config), "error_prefix=\"%s\",verbose=[salvage,verify],", progname); - strcat(config, "log=(enabled=false)"); + strcat(config, "log=(enabled=false),"); assert(wiredtiger_open(NULL, NULL, config, &conn) == 0); assert(conn->open_session(conn, NULL, NULL, &session) == 0); diff --git a/test/suite/test_checkpoint01.py b/test/suite/test_checkpoint01.py index 2eadc10b684..153ea015cf5 100644 --- a/test/suite/test_checkpoint01.py +++ b/test/suite/test_checkpoint01.py @@ -52,13 +52,6 @@ class test_checkpoint(wttest.WiredTigerTestCase): "checkpoint-9": ((400, 920), 0) } - # Set buffer alignment so we can use small pages. - def setUpConnectionOpen(self, dir): - wtopen_args = 'create,buffer_alignment=512' - conn = wiredtiger.wiredtiger_open(dir, wtopen_args) - self.pr(`conn`) - return conn - # Add a set of records for a checkpoint. def add_records(self, name): cursor = self.session.open_cursor(self.uri, None, "overwrite") |