rocksdb/options
Phani Shekhar Mantripragada 4b65cfc723 Support for block_cache num_shards and other config via option string.
Summary:
Problem: Option string accepts only cache_size as parameter for block_cache which is specified as "block_cache=1M".
It doesn't accept other parameters like num_shards etc.

Changes :
1) ParseBlockBasedTableOption in block_based_table_factory is edited to accept cache options in the format "block_cache=<cache_size>:<num_shard_bits>:<strict_capacity_limit>:<high_pri_pool_ratio>".
Options other than cache_size are optional to maintain backward compatibility. The changes are valid for block_cache_compressed as well.
For example, "block_cache=1M:6:true:0.5", "block_cache=1M:6:true", "block_cache=1M:6" and "block_cache=1M" are all valid option strings.

2) Corresponding unit tests are added.
Closes https://github.com/facebook/rocksdb/pull/3108

Differential Revision: D6420997

Pulled By: sagar0

fbshipit-source-id: cdea8b785688d2802907974af27225ccc1c0cd43
2017-11-28 10:48:53 -08:00
..
cf_options.cc Make DBOption compaction_readahead_size dynamic 2017-11-16 17:57:25 -08:00
cf_options.h Make DBOption compaction_readahead_size dynamic 2017-11-16 17:57:25 -08:00
db_options.cc Make DBOption compaction_readahead_size dynamic 2017-11-16 17:57:25 -08:00
db_options.h Make DBOption compaction_readahead_size dynamic 2017-11-16 17:57:25 -08:00
options_helper.cc Support for block_cache num_shards and other config via option string. 2017-11-28 10:48:53 -08:00
options_helper.h Support for block_cache num_shards and other config via option string. 2017-11-28 10:48:53 -08:00
options_parser.cc Make FIFO compaction options dynamically configurable 2017-10-19 15:26:36 -07:00
options_parser.h WritePrepared Txn: Optimize for recoverable state 2017-11-01 17:26:46 -07:00
options_sanity_check.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
options_sanity_check.h Change RocksDB License 2017-07-15 16:11:23 -07:00
options_settable_test.cc Move static variables out of the header file 2017-11-17 17:12:27 -08:00
options_test.cc Support for block_cache num_shards and other config via option string. 2017-11-28 10:48:53 -08:00
options.cc Added support for differential snapshots 2017-11-01 18:56:43 -07:00