Commit 998de3db authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

fixes #6115 set compression method


git-svn-id: file:///svn/toku/tokudb@53772 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5819ccfc
...@@ -1742,6 +1742,7 @@ static void open_db_for_create(DB *db, int idx, struct cli_args *cli_args) { ...@@ -1742,6 +1742,7 @@ static void open_db_for_create(DB *db, int idx, struct cli_args *cli_args) {
r = db->set_flags(db, 0); CKERR(r); r = db->set_flags(db, 0); CKERR(r);
r = db->set_pagesize(db, cli_args->env_args.node_size); CKERR(r); r = db->set_pagesize(db, cli_args->env_args.node_size); CKERR(r);
r = db->set_readpagesize(db, cli_args->env_args.basement_node_size); CKERR(r); r = db->set_readpagesize(db, cli_args->env_args.basement_node_size); CKERR(r);
r = db->set_compression_method(db, cli_args->compression_method); CKERR(r);
const int flags = DB_CREATE | (cli_args->blackhole ? DB_BLACKHOLE : 0); const int flags = DB_CREATE | (cli_args->blackhole ? DB_BLACKHOLE : 0);
r = db->open(db, null_txn, name, nullptr, DB_BTREE, flags, 0666); CKERR(r); r = db->open(db, null_txn, name, nullptr, DB_BTREE, flags, 0666); CKERR(r);
} }
......
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