|
|
|
@ -256,8 +256,11 @@ DBOptions::DBOptions() |
|
|
|
|
enable_thread_tracking(false), |
|
|
|
|
delayed_write_rate(1024U * 1024U), |
|
|
|
|
skip_stats_update_on_db_open(false), |
|
|
|
|
wal_recovery_mode(WALRecoveryMode::kTolerateCorruptedTailRecords), |
|
|
|
|
wal_filter(nullptr) { |
|
|
|
|
wal_recovery_mode(WALRecoveryMode::kTolerateCorruptedTailRecords) |
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
,wal_filter(nullptr)
|
|
|
|
|
#endif // ROCKSDB_LITE
|
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DBOptions::DBOptions(const Options& options) |
|
|
|
@ -313,8 +316,12 @@ DBOptions::DBOptions(const Options& options) |
|
|
|
|
delayed_write_rate(options.delayed_write_rate), |
|
|
|
|
skip_stats_update_on_db_open(options.skip_stats_update_on_db_open), |
|
|
|
|
wal_recovery_mode(options.wal_recovery_mode), |
|
|
|
|
row_cache(options.row_cache), |
|
|
|
|
wal_filter(options.wal_filter){} |
|
|
|
|
row_cache(options.row_cache) |
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
,wal_filter(options.wal_filter) |
|
|
|
|
#endif // ROCKSDB_LITE
|
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static const char* const access_hints[] = { |
|
|
|
|
"NONE", "NORMAL", "SEQUENTIAL", "WILLNEED" |
|
|
|
@ -412,8 +419,10 @@ void DBOptions::Dump(Logger* log) const { |
|
|
|
|
} else { |
|
|
|
|
Header(log, " Options.row_cache: None"); |
|
|
|
|
} |
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
Header(log, " Options.wal_filter: %s", |
|
|
|
|
wal_filter ? wal_filter->Name() : "None"); |
|
|
|
|
#endif // ROCKDB_LITE
|
|
|
|
|
} // DBOptions::Dump
|
|
|
|
|
|
|
|
|
|
void ColumnFamilyOptions::Dump(Logger* log) const { |
|
|
|
|