Lines Matching refs:readLock
56050 i16 readLock; /* Which read lock is being held. -1 for none */
56950 pRet->readLock = -1;
57843 pWal->readLock = 0;
58023 assert( pWal->readLock<0 ); /* Not currently locked */
58124 pWal->readLock = 0;
58219 pWal->readLock = (i16)mxI;
58247 assert( pWal->readLock>=0 );
58354 assert( pWal->readLock>0 || pWal->hdr.mxFrame==0 );
58355 assert( pInfo->aReadMark[pWal->readLock]<=pSnapshot->mxFrame );
58381 assert( pWal->readLock>0 );
58408 if( pWal->readLock>=0 ){
58409 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
58410 pWal->readLock = -1;
58433 assert( pWal->readLock>=0 || pWal->lockError );
58441 if( iLast==0 || (pWal->readLock==0 && pWal->bShmUnreliable==0) ){
58545 if( pWal && ALWAYS(pWal->readLock>=0) ){
58570 assert( pWal->readLock>=0 );
58720 if( pWal->readLock==0 ){
58744 pWal->readLock = -1;
59277 assert( pWal->readLock>=0 || pWal->lockError );
59278 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
59283 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
59293 assert( pWal->readLock>=0 );
59294 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
59322 assert( pWal->readLock>=0 && pWal->writeLock==0 );
59370 assert( pWal==0 || pWal->readLock>=0 );