diff options
author | drh <drh@noemail.net> | 2011-04-05 18:34:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-04-05 18:34:10 +0000 |
commit | 8d4991e7ba4e79fabcb3e0f4f6919b9d25d95401 (patch) | |
tree | 04e70fa166f3b35edca076065870d650248bd8bd /src | |
parent | e54e051800948da6bc223e51981cfb437d53911b (diff) | |
download | sqlite-8d4991e7ba4e79fabcb3e0f4f6919b9d25d95401.tar.gz sqlite-8d4991e7ba4e79fabcb3e0f4f6919b9d25d95401.zip |
Remove dead code from the OP_JournalMode opcode in the VDBE.
This code seems to have been useless since [f88c6367d2] on [20010-08-07].
FossilOrigin-Name: a89f24e2c9591d09cbe329895ceec87885059184
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbe.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/vdbe.c b/src/vdbe.c index d2e60a570..ce62d7f12 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -5300,24 +5300,6 @@ case OP_JournalMode: { /* out2-prerelease */ ); assert( pOp->p1>=0 && pOp->p1<db->nDb ); - /* This opcode is used in two places: PRAGMA journal_mode and ATTACH. - ** In PRAGMA journal_mode, the sqlite3VdbeUsesBtree() routine is called - ** when the statement is prepared and so p->btreeMask!=0. All mutexes - ** are already acquired. But when used in ATTACH, sqlite3VdbeUsesBtree() - ** is not called when the statement is prepared because it requires the - ** iDb index of the database as a parameter, and the database has not - ** yet been attached so that index is unavailable. We have to wait - ** until runtime (now) to get the mutex on the newly attached database. - ** No other mutexes are required by the ATTACH command so this is safe - ** to do. - */ - if( p->btreeMask==0 ){ - /* This occurs right after ATTACH. Get a mutex on the newly ATTACHed - ** database. */ - sqlite3VdbeUsesBtree(p, pOp->p1); - sqlite3VdbeEnter(p); - } - pBt = db->aDb[pOp->p1].pBt; pPager = sqlite3BtreePager(pBt); eOld = sqlite3PagerGetJournalMode(pPager); |