diff options
-rw-r--r-- | api/leveldb/leveldb_wt.cc | 3 | ||||
-rw-r--r-- | api/leveldb/rocks_wt.cc | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/api/leveldb/leveldb_wt.cc b/api/leveldb/leveldb_wt.cc index 7aa6f7aaf9f..ac2df8c253b 100644 --- a/api/leveldb/leveldb_wt.cc +++ b/api/leveldb/leveldb_wt.cc @@ -206,6 +206,8 @@ wtleveldb_create( s_table << WT_TABLE_CONFIG; s_table << "internal_page_max=" << options.block_size << ","; s_table << "leaf_page_max=" << options.block_size << ","; + // LSM doesn't split, build full pages from the start + s_table << "split_pct=100,"; if (options.compression == leveldb::kSnappyCompression) s_table << "block_compressor=snappy,"; s_table << "lsm=("; @@ -252,6 +254,7 @@ leveldb::DB::Open(const Options &options, const std::string &name, leveldb::DB * else cache_size += 100 << 20; s_conn << "cache_size=" << cache_size << ","; + s_conn << "eviction_workers=4,"; std::string conn_config = s_conn.str(); WT_CONNECTION *conn; diff --git a/api/leveldb/rocks_wt.cc b/api/leveldb/rocks_wt.cc index 4d623854691..abfab10cf09 100644 --- a/api/leveldb/rocks_wt.cc +++ b/api/leveldb/rocks_wt.cc @@ -279,7 +279,6 @@ DbImpl::NewIterator(ReadOptions const &options, ColumnFamilyHandle *cfhp) { OperationContext *context = GetContext(options); - WT_SESSION *session = context->GetSession(); WT_CURSOR *c; int ret = wtrocks_get_cursor(context, cfhp, &c, 1); assert(ret == 0); |