parts count

This commit is contained in:
Nikita Vasilev 2020-05-23 13:42:02 +03:00
parent e7324ec4d7
commit deb0e2f199
2 changed files with 2 additions and 0 deletions

View File

@ -1619,6 +1619,7 @@ void registerDictionarySSDCache(DictionaryFactory & factory)
const auto max_partitions_count = config.getInt(layout_prefix + ".ssd_cache.max_partitions_count", DEFAULT_PARTITIONS_COUNT);
if (max_partitions_count <= 0)
throw Exception{name + ": dictionary of layout 'ssd_cache' cannot have 0 (or less) max_partitions_count", ErrorCodes::BAD_ARGUMENTS};
max_partitions_count = 1;
const auto block_size = config.getInt(layout_prefix + ".ssd_cache.block_size", DEFAULT_SSD_BLOCK_SIZE);
if (block_size <= 0)

View File

@ -1733,6 +1733,7 @@ void registerDictionarySSDComplexKeyCache(DictionaryFactory & factory)
const auto max_partitions_count = config.getInt(layout_prefix + ".complex_key_ssd_cache.max_partitions_count", DEFAULT_PARTITIONS_COUNT);
if (max_partitions_count <= 0)
throw Exception{name + ": dictionary of layout 'complex_key_ssd_cache' cannot have 0 (or less) max_partitions_count", ErrorCodes::BAD_ARGUMENTS};
max_partitions_count = 1;
const auto block_size = config.getInt(layout_prefix + ".complex_key_ssd_cache.block_size", DEFAULT_SSD_BLOCK_SIZE);
if (block_size <= 0)