Home | History | Annotate | Download | only in orig

Lines Matching defs:readLock

32560     ** before establishing the readlock - to avoid a race condition we downgrade
41822 ** Undo a readlock
56050 i16 readLock; /* Which read lock is being held. -1 for none */
56950 pRet->readLock = -1;
57843 pWal->readLock = 0;
57995 ** WAL_READ_LOCK(pWal->readLock). The pWal->readLock integer is
57996 ** in the range 0 <= pWal->readLock < WAL_NREADER. If pWal->readLock==(-1)
57999 ** including frame number aReadMark[pWal->readLock]. The reader will
58000 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
58001 ** Or if pWal->readLock==0, then the reader will ignore the WAL
58004 ** this routine will always set pWal->readLock>0 on success.
58006 ** lock on WAL_READ_LOCK(pWal->readLock) and set pWal->readLock to -1.
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 );
58437 ** in this case as an optimization. Likewise, if pWal->readLock==0,
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;
59248 ** on the pWal->readLock byte. If the WAL is already in locking_mode=NORMAL
59255 ** locking_mode=EXCLUSIVE. This means that the pWal->readLock must
59271 /* pWal->readLock is usually set, but might be -1 if there was a
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 );
63379 ** also acquire a readlock on that file.
86489 ** on which the lock is acquired. A readlock is obtained if P3==0 or