Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed May 15, 2024
1 parent 28722b4 commit 7a79804
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions database/pebble/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 },
}
Expand Down

0 comments on commit 7a79804

Please sign in to comment.