|
|
@ -919,6 +919,17 @@ Status ParseColumnFamilyOption(const std::string& name, |
|
|
|
} |
|
|
|
} |
|
|
|
new_options->compression_opts.max_dict_bytes = |
|
|
|
new_options->compression_opts.max_dict_bytes = |
|
|
|
ParseInt(value.substr(start, value.size() - start)); |
|
|
|
ParseInt(value.substr(start, value.size() - start)); |
|
|
|
|
|
|
|
end = value.find(':', start); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// zstd_max_train_bytes is optional for backwards compatibility
|
|
|
|
|
|
|
|
if (end != std::string::npos) { |
|
|
|
|
|
|
|
start = end + 1; |
|
|
|
|
|
|
|
if (start >= value.size()) { |
|
|
|
|
|
|
|
return Status::InvalidArgument( |
|
|
|
|
|
|
|
"unable to parse the specified CF option " + name); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
new_options->compression_opts.zstd_max_train_bytes = |
|
|
|
|
|
|
|
ParseInt(value.substr(start, value.size() - start)); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
auto iter = cf_options_type_info.find(name); |
|
|
|
auto iter = cf_options_type_info.find(name); |
|
|
|