Lines Matching refs:readLock
56066 i16 readLock; /* Which read lock is being held. -1 for none */
56966 pRet->readLock = -1;
57859 pWal->readLock = 0;
58039 assert( pWal->readLock<0 ); /* Not currently locked */
58140 pWal->readLock = 0;
58235 pWal->readLock = (i16)mxI;
58263 assert( pWal->readLock>=0 );
58370 assert( pWal->readLock>0 || pWal->hdr.mxFrame==0 );
58371 assert( pInfo->aReadMark[pWal->readLock]<=pSnapshot->mxFrame );
58397 assert( pWal->readLock>0 );
58424 if( pWal->readLock>=0 ){
58425 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
58426 pWal->readLock = -1;
58449 assert( pWal->readLock>=0 || pWal->lockError );
58457 if( iLast==0 || (pWal->readLock==0 && pWal->bShmUnreliable==0) ){
58561 if( pWal && ALWAYS(pWal->readLock>=0) ){
58586 assert( pWal->readLock>=0 );
58736 if( pWal->readLock==0 ){
58760 pWal->readLock = -1;
59293 assert( pWal->readLock>=0 || pWal->lockError );
59294 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
59299 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
59309 assert( pWal->readLock>=0 );
59310 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
59338 assert( pWal->readLock>=0 && pWal->writeLock==0 );
59386 assert( pWal==0 || pWal->readLock>=0 );