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

Refactor the Vdbe.noIO field as Vdbe.bIsReader. The meaning is inverted.

FossilOrigin-Name: 59f98c5c241e5a61cd5b6d0e69b55a6b44c5cafc
This commit is contained in:
drh
2013-06-28 01:24:57 +00:00
parent 4f7d3a5f06
commit 1713afb025
8 changed files with 32 additions and 31 deletions

View File

@@ -3273,12 +3273,13 @@ int sqlite3BtreeCommitPhaseOne(Btree *p, const char *zMaster){
*/
static void btreeEndTransaction(Btree *p){
BtShared *pBt = p->pBt;
sqlite3 *db = p->db;
assert( sqlite3BtreeHoldsMutex(p) );
#ifndef SQLITE_OMIT_AUTOVACUUM
pBt->bDoTruncate = 0;
#endif
if( p->inTrans>TRANS_NONE && p->db->nVdbeActive>1 ){
if( p->inTrans>TRANS_NONE && db->nVdbeActive>1 ){
/* If there are other active statements that belong to this database
** handle, downgrade to a read-only transaction. The other statements
** may still be reading from the database. */