Add two more options: disable block cache and make table cache shard number configuable

Summary:

as subject

Test Plan:

run db_bench and db_test

Reviewers: dhruba

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D6111
This commit is contained in:
heyongqiang
2012-10-31 17:02:24 -07:00
parent 3e7e269292
commit 3096fa7534
5 changed files with 37 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ TableCache::TableCache(const std::string& dbname,
: env_(options->env),
dbname_(dbname),
options_(options),
cache_(NewLRUCache(entries)) {
cache_(NewLRUCache(entries, options->table_cache_numshardbits)) {
dbstatistics = (DBStatistics*)options->statistics;
}