Skip to content

Commit

Permalink
fix: disallow compaction params for goleveldb
Browse files Browse the repository at this point in the history
  • Loading branch information
kjessec committed Mar 4, 2022
1 parent 682decc commit 933aaa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions goleveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ func NewGoLevelDB(name string, dir string) (*GoLevelDB, error) {
// Use 1 GiB instead of default 8 MiB
BlockCacheCapacity: opt.GiB,
// Use 64 MiB instead of default 4 MiB
WriteBuffer: 64 * opt.MiB,
CompactionTableSize: 8 * opt.MiB,
CompactionTotalSize: 40 * opt.MiB,
CompactionTotalSizeMultiplierPerLevel: []float64{1, 1, 10, 100, 1000, 10000, 100000},
WriteBuffer: 64 * opt.MiB,
//CompactionTableSize: 8 * opt.MiB,
//CompactionTotalSize: 40 * opt.MiB,
//CompactionTotalSizeMultiplierPerLevel: []float64{1, 1, 10, 100, 1000, 10000, 100000},
}
return NewGoLevelDBWithOpts(name, dir, o)
}
Expand Down

0 comments on commit 933aaa5

Please sign in to comment.