Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
// RocksDB sharding in BlueStore dramatically lifted the number of
// threads spawn during RocksDB's init.
.set_validator([](std::string *value, std::string *error_message){
- if (*value != "false") {
+ if (const bool parsed_value = strict_strtob(value->c_str(), error_message);
+ error_message->empty() && parsed_value) {
*error_message = "invalid BlueStore sharding configuration."
" Be aware any change takes effect only on mkfs!";
return -EINVAL;
+ } else {
+ return 0;
}
- return 0;
})
#endif
.set_description("Enable use of rocksdb column families for bluestore metadata"),