From 7a798044c3a7a90309becacb50cfacce5b09e0cf Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Wed, 15 May 2024 15:09:00 -0400 Subject: [PATCH] nit --- database/pebble/db.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/database/pebble/db.go b/database/pebble/db.go index f4d6e70a75fe..944e8f68e565 100644 --- a/database/pebble/db.go +++ b/database/pebble/db.go @@ -53,13 +53,13 @@ type Database struct { } type Config struct { - CacheSize int `json:"cacheSize"` - BytesPerSync int `json:"bytesPerSync"` - WALBytesPerSync int `json:"walBytesPerSync"` // 0 means no background syncing - MemTableStopWritesThreshold int `json:"memTableStopWritesThreshold"` - MemTableSize int `json:"memTableSize"` - MaxOpenFiles int `json:"maxOpenFiles"` - MaxConcurrentCompactions int `json:"maxConcurrentCompactions"` + CacheSize int `json:"cacheSize"` + BytesPerSync int `json:"bytesPerSync"` + WALBytesPerSync int `json:"walBytesPerSync"` // 0 means no background syncing + MemTableStopWritesThreshold int `json:"memTableStopWritesThreshold"` + MemTableSize uint64 `json:"memTableSize"` + MaxOpenFiles int `json:"maxOpenFiles"` + MaxConcurrentCompactions int `json:"maxConcurrentCompactions"` } // TODO: Add metrics @@ -77,7 +77,7 @@ func New(file string, configBytes []byte, log logging.Logger, _ string, _ promet Comparer: pebble.DefaultComparer, WALBytesPerSync: cfg.WALBytesPerSync, MemTableStopWritesThreshold: cfg.MemTableStopWritesThreshold, - MemTableSize: uint64(cfg.MemTableSize), + MemTableSize: cfg.MemTableSize, MaxOpenFiles: cfg.MaxOpenFiles, MaxConcurrentCompactions: func() int { return cfg.MaxConcurrentCompactions }, }