|
|
|
@ -347,7 +347,7 @@ ColumnFamilyOptions SanitizeOptions(const ImmutableDBOptions& db_options, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool is_block_based_table = |
|
|
|
|
(result.table_factory->Name() == BlockBasedTableFactory().Name()); |
|
|
|
|
(result.table_factory->Name() == BlockBasedTableFactory::kName); |
|
|
|
|
|
|
|
|
|
const uint64_t kAdjustedTtl = 30 * 24 * 60 * 60; |
|
|
|
|
if (result.ttl == kDefaultTtl) { |
|
|
|
@ -1300,7 +1300,7 @@ Status ColumnFamilyData::ValidateOptions( |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (cf_options.ttl > 0 && cf_options.ttl != kDefaultTtl) { |
|
|
|
|
if (cf_options.table_factory->Name() != BlockBasedTableFactory().Name()) { |
|
|
|
|
if (cf_options.table_factory->Name() != BlockBasedTableFactory::kName) { |
|
|
|
|
return Status::NotSupported( |
|
|
|
|
"TTL is only supported in Block-Based Table format. "); |
|
|
|
|
} |
|
|
|
@ -1308,7 +1308,7 @@ Status ColumnFamilyData::ValidateOptions( |
|
|
|
|
|
|
|
|
|
if (cf_options.periodic_compaction_seconds > 0 && |
|
|
|
|
cf_options.periodic_compaction_seconds != kDefaultPeriodicCompSecs) { |
|
|
|
|
if (cf_options.table_factory->Name() != BlockBasedTableFactory().Name()) { |
|
|
|
|
if (cf_options.table_factory->Name() != BlockBasedTableFactory::kName) { |
|
|
|
|
return Status::NotSupported( |
|
|
|
|
"Periodic Compaction is only supported in " |
|
|
|
|
"Block-Based Table format. "); |
|
|
|
|