Skip to content

Commit

Permalink
add missing sync-mode flag in PebbleConfigAddOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Nov 19, 2024
1 parent 206ffb7 commit b730c3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/conf/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ var PebbleConfigDefault = PebbleConfig{
}

func PebbleConfigAddOptions(prefix string, f *flag.FlagSet, defaultConfig *PebbleConfig) {
f.Bool(prefix+".sync-mode", defaultConfig.SyncMode, "if true sync mode is used (data needs to be written to WAL before the write is marked as completed)")
f.Int(prefix+".max-concurrent-compactions", defaultConfig.MaxConcurrentCompactions, "maximum number of concurrent compactions")
PebbleExperimentalConfigAddOptions(prefix+".experimental", f, &defaultConfig.Experimental)
}
Expand Down

0 comments on commit b730c3f

Please sign in to comment.