mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Change the journal_mode pragma to remove the "default journal mode" concept.
The journal_mode pragma only effects currently attached databases and does not change the behavior of future attachments. FossilOrigin-Name: e396184cd3bdb96e29ac33af5d1f631cac553341
This commit is contained in:
@@ -5165,11 +5165,6 @@ case OP_Checkpoint: {
|
||||
** If changing into or out of WAL mode the procedure is more complicated.
|
||||
**
|
||||
** Write a string containing the final journal-mode to register P2.
|
||||
**
|
||||
** If an attempt to change in to or out of WAL mode fails because another
|
||||
** connection also has the same database open, then an SQLITE_BUSY error
|
||||
** is raised if P5==0, or of P5!=0 the journal mode changed is skipped
|
||||
** without signaling the error.
|
||||
*/
|
||||
case OP_JournalMode: { /* out2-prerelease */
|
||||
Btree *pBt; /* Btree to change journal mode of */
|
||||
@@ -5267,7 +5262,6 @@ case OP_JournalMode: { /* out2-prerelease */
|
||||
#endif /* ifndef SQLITE_OMIT_WAL */
|
||||
|
||||
if( rc ){
|
||||
if( rc==SQLITE_BUSY && pOp->p5!=0 ) rc = SQLITE_OK;
|
||||
eNew = eOld;
|
||||
}
|
||||
eNew = sqlite3PagerSetJournalMode(pPager, eNew);
|
||||
|
Reference in New Issue
Block a user