From f0fe5cac4e5123f947985d5179606c09c570c5f2 Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 5 Nov 2014 10:45:12 +0800 Subject: [PATCH] add ignore configuration set --- store/rocksdb/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/rocksdb/db.go b/store/rocksdb/db.go index 60816d3..52a74b7 100644 --- a/store/rocksdb/db.go +++ b/store/rocksdb/db.go @@ -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)