add ignore configuration set

This commit is contained in:
siddontang 2014-11-05 10:45:12 +08:00
parent ae12ced082
commit f0fe5cac4e
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ func (db *DB) initOptions(cfg *config.RocksDBConfig) {
opts.SetMaxOpenFiles(cfg.MaxOpenFiles)
opts.SetMaxBackgroundCompactions(cfg.MaxBackgroundCompactions)
opts.SetMaxBackgroundFlushes(cfg.MaxBackgroundFlushes)
opts.SetLevel0FileNumCompactionTrigger(cfg.Level0FileNumCompactionTrigger)
opts.SetLevel0SlowdownWritesTrigger(cfg.Level0SlowdownWritesTrigger)
opts.SetLevel0StopWritesTrigger(cfg.Level0StopWritesTrigger)
opts.SetTargetFileSizeBase(cfg.TargetFileSizeBase)