Skip to content

Commit

Permalink
storage: update log file num
Browse files Browse the repository at this point in the history
  • Loading branch information
qywang2012 committed Jan 9, 2019
1 parent aa3cb18 commit 3b93334
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/rocks_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func NewRocksStorage(path string) (*RocksStorage, error) {
opts.SetMaxOpenFiles(500)
opts.SetWriteBufferSize(64 * opt.MiB) //Default: 4MB
opts.IncreaseParallelism(4) //flush and compaction thread
opts.SetKeepLogFileNum(1)

db, err := gorocksdb.OpenDb(opts, path)
if err != nil {
Expand Down

0 comments on commit 3b93334

Please sign in to comment.