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