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

Further tests and changes related to switching between WAL and rollback modes.

FossilOrigin-Name: 1236318477787a612f02cc98caf2931bd2e99d94
This commit is contained in:
dan
2010-04-22 06:27:04 +00:00
parent b978002743
commit ede6eb8d1d
6 changed files with 92 additions and 27 deletions

View File

@@ -5244,11 +5244,12 @@ case OP_JournalMode: {
);
}else{
/* If leaving WAL mode, close the log file. If successful, the call to
** PagerCloseLog() checkpoints and deletes the write-ahead-log file.
** An EXCLUSIVE lock is still held on the database file after returning.
*/
if( eOld==PAGER_JOURNALMODE_WAL ){
/* If leaving WAL mode, close the log file. If successful, the call
** to PagerCloseLog() checkpoints and deletes the write-ahead-log
** file. An EXCLUSIVE lock may still be held on the database file
** after a successful return.
*/
rc = sqlite3PagerCloseLog(pPager);
if( rc!=SQLITE_OK ) goto abort_due_to_error;
sqlite3PagerJournalMode(pPager, eNew);