|
|
@ -43,6 +43,7 @@ using rocksdb::CompactionFilterContext; |
|
|
|
using rocksdb::CompactionOptionsFIFO; |
|
|
|
using rocksdb::CompactionOptionsFIFO; |
|
|
|
using rocksdb::Comparator; |
|
|
|
using rocksdb::Comparator; |
|
|
|
using rocksdb::CompressionType; |
|
|
|
using rocksdb::CompressionType; |
|
|
|
|
|
|
|
using rocksdb::WALRecoveryMode; |
|
|
|
using rocksdb::DB; |
|
|
|
using rocksdb::DB; |
|
|
|
using rocksdb::DBOptions; |
|
|
|
using rocksdb::DBOptions; |
|
|
|
using rocksdb::Env; |
|
|
|
using rocksdb::Env; |
|
|
@ -1554,6 +1555,10 @@ void rocksdb_options_set_level0_stop_writes_trigger( |
|
|
|
void rocksdb_options_set_max_mem_compaction_level(rocksdb_options_t* opt, |
|
|
|
void rocksdb_options_set_max_mem_compaction_level(rocksdb_options_t* opt, |
|
|
|
int n) {} |
|
|
|
int n) {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void rocksdb_options_set_wal_recovery_mode(rocksdb_options_t* opt,int mode) { |
|
|
|
|
|
|
|
opt->rep.wal_recovery_mode = static_cast<WALRecoveryMode>(mode); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void rocksdb_options_set_compression(rocksdb_options_t* opt, int t) { |
|
|
|
void rocksdb_options_set_compression(rocksdb_options_t* opt, int t) { |
|
|
|
opt->rep.compression = static_cast<CompressionType>(t); |
|
|
|
opt->rep.compression = static_cast<CompressionType>(t); |
|
|
|
} |
|
|
|
} |
|
|
|