Lines Matching refs:readLock
45753 i16 readLock; /* Which read lock is being held. -1 for none */
46620 pRet->readLock = -1;
47412 assert( pWal->readLock<0 ); /* Not currently locked */
47498 pWal->readLock = 0;
47574 pWal->readLock = (i16)mxI;
47614 if( pWal->readLock>=0 ){
47615 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
47616 pWal->readLock = -1;
47640 assert( pWal->readLock>=0 || pWal->lockError );
47648 if( iLast==0 || pWal->readLock==0 ){
47745 if( pWal && ALWAYS(pWal->readLock>=0) ){
47770 assert( pWal->readLock>=0 );
47920 if( pWal->readLock==0 ){
47955 pWal->readLock = -1;
48369 assert( pWal->readLock>=0 || pWal->lockError );
48370 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
48375 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
48385 assert( pWal->readLock>=0 );
48386 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
48411 assert( pWal==0 || pWal->readLock>=0 );