1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a problem causing "PRAGMA journal_mode" to report the wrong journal mode

(wal instead of wal2) under some circumstances.

FossilOrigin-Name: bf309107dfc4d2abd68b9339c68aeaaffd278096bb2a5912e4a0b0c124fd6345
This commit is contained in:
dan
2018-12-05 17:20:47 +00:00
5 changed files with 25 additions and 9 deletions

View File

@@ -4913,4 +4913,12 @@ int sqlite3WalInfo(Wal *pWal, u32 *pnPrior, u32 *pnFrame){
return rc;
}
/*
** Return the journal mode used by this Wal object.
*/
int sqlite3WalJournalMode(Wal *pWal){
assert( pWal );
return (isWalMode2(pWal) ? PAGER_JOURNALMODE_WAL2 : PAGER_JOURNALMODE_WAL);
}
#endif /* #ifndef SQLITE_OMIT_WAL */