[InterNetNews/inn] 3258bd: ovsqlite: Set journal mode from open_db() based on...

Kevin Bowling noreply at github.com
Thu May 21 22:00:36 UTC 2026


  Branch: refs/heads/main
  Home:   https://github.com/InterNetNews/inn
  Commit: 3258bd37a17b8d58d1ffd166409118fdeaea5a73
      https://github.com/InterNetNews/inn/commit/3258bd37a17b8d58d1ffd166409118fdeaea5a73
  Author: Kevin Bowling <kevin.bowling at kev009.com>
  Date:   2026-05-21 (Thu, 21 May 2026)

  Changed paths:
    M storage/ovsqlite/ovsqlite-server.c
    M storage/ovsqlite/sql-main.sql

  Log Message:
  -----------
  ovsqlite: Set journal mode from open_db() based on configuration

Move pragma journal_mode out of the sql-main.sql preamble and into
open_db() where it is set conditionally: WAL when walmode is true,
PERSIST otherwise.  Previously the preamble unconditionally set
PERSIST mode before open_db() re-set WAL, causing a pointless
WAL->PERSIST->WAL transition on every startup (or silently failing
if direct readers held the WAL open).

see #338



To unsubscribe from these emails, change your notification settings at https://github.com/InterNetNews/inn/settings/notifications


More information about the inn-committers mailing list