Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to synchronous FULL for the sqlite backend #11387

Merged
merged 3 commits into from
Apr 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/backend/lite/lite.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const (
// AlternativeName is another name of this backend.
AlternativeName = "dir"

// SyncOff disables file system sync after writing.
SyncOff = "OFF"
// SyncFull fsyncs the database file on disk after every write.
SyncFull = "FULL"

Expand All @@ -66,7 +64,7 @@ const (
slowTransactionThreshold = time.Second

// defaultSync is the default value for Sync
defaultSync = SyncOff
defaultSync = SyncFull

// defaultBusyTimeout is the default value for BusyTimeout, in ms
defaultBusyTimeout = 10000
Expand Down