If the RocksDB base file size is changed, change the write cache and L0 size to match

This commit is contained in:
JoelKatz
2013-11-22 16:13:12 -08:00
committed by Vinnie Falco
parent 1954a0eb2e
commit b632a6b2cf

View File

@@ -125,6 +125,8 @@ public:
if (! keyValues["file_size_mb"].isEmpty())
{
options.target_file_size_base = 1024 * 1024 * keyValues["file_size_mb"].getIntValue();
options.max_bytes_for_level_base = 5 * options.target_file_size_base;
options.write_buffer_size = 2 * options.target_file_size_base;
}
if (! keyValues["file_size_mult"].isEmpty())