Skip to content

Commit

Permalink
rolled back WAL flag and pragama removal
Browse files Browse the repository at this point in the history
  • Loading branch information
arminus committed Nov 15, 2024
1 parent 909b5d0 commit 5575aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/oplog/sqlitestore/sqlitestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewSqliteStore(db string) (*SqliteStore, error) {
}
dbpool, err := sqlitex.NewPool(db, sqlitex.PoolOptions{
PoolSize: 16,
Flags: sqlite.OpenReadWrite | sqlite.OpenCreate,
Flags: sqlite.OpenReadWrite | sqlite.OpenCreate | sqlite.OpenWAL,
})
if err != nil {
return nil, fmt.Errorf("open sqlite pool: %v", err)
Expand Down Expand Up @@ -64,6 +64,7 @@ func (m *SqliteStore) Close() error {

func (m *SqliteStore) init() error {
var script = `
PRAGMA journal_mode=WAL;
PRAGMA page_size=4096;
CREATE TABLE IF NOT EXISTS operations (
id INTEGER PRIMARY KEY,
Expand Down

0 comments on commit 5575aa8

Please sign in to comment.