Skip to content

Commit

Permalink
Merge pull request #18519 from vrothberg/fix-18356
Browse files Browse the repository at this point in the history
sqlite: disable WAL mode
  • Loading branch information
openshift-merge-robot authored May 9, 2023
2 parents dc01ce8 + 1fb3cdf commit 6613e50
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libpod/sqlite_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ type SQLiteState struct {
const (
// Deal with timezone automatically.
sqliteOptionLocation = "_loc=auto"
// Set the journal mode (https://www.sqlite.org/pragma.html#pragma_journal_mode).
sqliteOptionJournal = "&_journal=WAL"
// Force WAL mode to fsync after each transaction (https://www.sqlite.org/pragma.html#pragma_synchronous).
// Force an fsync after each transaction (https://www.sqlite.org/pragma.html#pragma_synchronous).
sqliteOptionSynchronous = "&_sync=FULL"
// Allow foreign keys (https://www.sqlite.org/pragma.html#pragma_foreign_keys).
sqliteOptionForeignKeys = "&_foreign_keys=1"
Expand All @@ -44,7 +42,6 @@ const (
// Assembled sqlite options used when opening the database.
sqliteOptions = "db.sql?" +
sqliteOptionLocation +
sqliteOptionJournal +
sqliteOptionSynchronous +
sqliteOptionForeignKeys +
sqliteOptionTXLock
Expand Down

0 comments on commit 6613e50

Please sign in to comment.