|
|
@ -106,6 +106,7 @@ enum class OptionType { |
|
|
|
kString, |
|
|
|
kString, |
|
|
|
kDouble, |
|
|
|
kDouble, |
|
|
|
kCompactionStyle, |
|
|
|
kCompactionStyle, |
|
|
|
|
|
|
|
kCompactionPri, |
|
|
|
kSliceTransform, |
|
|
|
kSliceTransform, |
|
|
|
kCompressionType, |
|
|
|
kCompressionType, |
|
|
|
kVectorCompressionType, |
|
|
|
kVectorCompressionType, |
|
|
@ -581,8 +582,10 @@ static std::unordered_map<std::string, OptionTypeInfo> cf_options_type_info = { |
|
|
|
OptionType::kMergeOperator, OptionVerificationType::kByName, false, 0}}, |
|
|
|
OptionType::kMergeOperator, OptionVerificationType::kByName, false, 0}}, |
|
|
|
{"compaction_style", |
|
|
|
{"compaction_style", |
|
|
|
{offset_of(&ColumnFamilyOptions::compaction_style), |
|
|
|
{offset_of(&ColumnFamilyOptions::compaction_style), |
|
|
|
OptionType::kCompactionStyle, OptionVerificationType::kNormal, false, |
|
|
|
OptionType::kCompactionStyle, OptionVerificationType::kNormal, false, 0}}, |
|
|
|
0}}}; |
|
|
|
{"compaction_pri", |
|
|
|
|
|
|
|
{offset_of(&ColumnFamilyOptions::compaction_pri), |
|
|
|
|
|
|
|
OptionType::kCompactionPri, OptionVerificationType::kNormal, false, 0}}}; |
|
|
|
|
|
|
|
|
|
|
|
static std::unordered_map<std::string, OptionTypeInfo> |
|
|
|
static std::unordered_map<std::string, OptionTypeInfo> |
|
|
|
block_based_table_type_info = { |
|
|
|
block_based_table_type_info = { |
|
|
@ -714,6 +717,13 @@ static std::unordered_map<std::string, CompactionStyle> |
|
|
|
{"kCompactionStyleFIFO", kCompactionStyleFIFO}, |
|
|
|
{"kCompactionStyleFIFO", kCompactionStyleFIFO}, |
|
|
|
{"kCompactionStyleNone", kCompactionStyleNone}}; |
|
|
|
{"kCompactionStyleNone", kCompactionStyleNone}}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static std::unordered_map<std::string, CompactionPri> |
|
|
|
|
|
|
|
compaction_pri_string_map = { |
|
|
|
|
|
|
|
{"kByCompensatedSize", kByCompensatedSize}, |
|
|
|
|
|
|
|
{"kOldestLargestSeqFirst", kOldestLargestSeqFirst}, |
|
|
|
|
|
|
|
{"kOldestSmallestSeqFirst", kOldestSmallestSeqFirst}, |
|
|
|
|
|
|
|
{"kMinOverlappingRatio", kMinOverlappingRatio}}; |
|
|
|
|
|
|
|
|
|
|
|
static std::unordered_map<std::string, |
|
|
|
static std::unordered_map<std::string, |
|
|
|
WALRecoveryMode> wal_recovery_mode_string_map = { |
|
|
|
WALRecoveryMode> wal_recovery_mode_string_map = { |
|
|
|
{"kTolerateCorruptedTailRecords", |
|
|
|
{"kTolerateCorruptedTailRecords", |
|
|
|