Index: src/bitvec.c ================================================================== --- src/bitvec.c +++ src/bitvec.c @@ -169,11 +169,11 @@ int sqlite3BitvecSet(Bitvec *p, u32 i){ u32 h; if( p==0 ) return SQLITE_OK; assert( i>0 ); assert( i<=p->iSize ); - if( i>p->iSize ){ + if( i>p->iSize || i==0 ){ sqlite3_log(SQLITE_ERROR, "Bitvec: setting bit %d of bitvec size %d\n", (int)i, (int)p->iSize ); } i--; Index: src/pager.c ================================================================== --- src/pager.c +++ src/pager.c @@ -5384,17 +5384,10 @@ pager_unlock(pPager); assert( pPager->eState==PAGER_OPEN ); }else{ pPager->eState = PAGER_READER; pPager->hasHeldSharedLock = 1; -#ifndef SQLITE_OMIT_CONCURRENT - if( pPager->pAllRead ){ - sqlite3_log(SQLITE_ERROR, - "Bitvec: pAllRead already allocated in PagerSharedLock()" - ); - } -#endif } return rc; } /* @@ -5889,20 +5882,10 @@ ** This is because in those states the code to roll back savepoint ** transactions may copy data from the sub-journal into the database ** file as well as into the page cache. Which would be incorrect in ** WAL mode. */ -#ifndef SQLITE_OMIT_CONCURRENT - if( pPager->pAllRead - && pPager->dbSize!=sqlite3BitvecSize(pPager->pAllRead) - ){ - sqlite3_log(SQLITE_ERROR, - "Bitvec: pAllRead size is %d, dbOrigSize set to %d", - (int)sqlite3BitvecSize(pPager->pAllRead), pPager->dbSize - ); - } -#endif pPager->eState = PAGER_WRITER_LOCKED; pPager->dbHintSize = pPager->dbSize; pPager->dbFileSize = pPager->dbSize; pPager->dbOrigSize = pPager->dbSize; pPager->journalOff = 0;