From 933aaa53e5ce24c93249f13364389de0f5bfe8bb Mon Sep 17 00:00:00 2001 From: jess Date: Sat, 5 Mar 2022 03:38:47 +0900 Subject: [PATCH] fix: disallow compaction params for goleveldb --- goleveldb.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/goleveldb.go b/goleveldb.go index 15ac45c09..6d301bd1d 100644 --- a/goleveldb.go +++ b/goleveldb.go @@ -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) }