Commit 9cfbaf94 authored by Rich Prohaska's avatar Rich Prohaska

cleanup the test case address #408

git-svn-id: file:///svn/tokudb@2317 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7a94b49f
......@@ -17,7 +17,12 @@ int dbcreate(char *dbfile, char *dbname, int dbflags, int argc, char *argv[]) {
Db *db = new Db(env, DB_CXX_NO_EXCEPTIONS);
r = db->set_flags(dbflags); assert(r == 0);
r = db->open(0, dbfile, dbname, DB_BTREE, DB_CREATE, 0777); assert(r == 0);
r = db->open(0, dbfile, dbname, DB_BTREE, DB_CREATE, 0777);
if (r != 0) {
printf("db->open %s(%s) %d %s\n", dbfile, dbname, r, db_strerror(r));
env->close(0); delete env;
return 1;
}
int i = 0;
while (i < argc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment