Home | History | Annotate | Download | only in dist

Lines Matching refs:readLock

23155 ** Undo a readlock
23168 OSTRACE(( "UNLOCK-READLOCK file handle=%d res=%d?\n", id->h, res ));
26675 ** before establishing the readlock - to avoid a race condition we downgrade
34011 ** Undo a readlock
45764 i16 readLock; /* Which read lock is being held. -1 for none */
46631 pRet->readLock = -1;
47396 ** WAL_READ_LOCK(pWal->readLock). The pWal->readLock integer is
47397 ** in the range 0 <= pWal->readLock < WAL_NREADER. If pWal->readLock==(-1)
47400 ** including frame number aReadMark[pWal->readLock]. The reader will
47401 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
47402 ** Or if pWal->readLock==0, then the reader will ignore the WAL
47405 ** this routine will always set pWal->readLock>0 on success.
47407 ** lock on WAL_READ_LOCK(pWal->readLock) and set pWal->readLock to -1.
47423 assert( pWal->readLock<0 ); /* Not currently locked */
47509 pWal->readLock = 0;
47585 pWal->readLock = (i16)mxI;
47625 if( pWal->readLock>=0 ){
47626 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
47627 pWal->readLock = -1;
47651 assert( pWal->readLock>=0 || pWal->lockError );
47655 ** in this case as an optimization. Likewise, if pWal->readLock==0,
47659 if( iLast==0 || pWal->readLock==0 ){
47756 if( pWal && ALWAYS(pWal->readLock>=0) ){
47781 assert( pWal->readLock>=0 );
47931 if( pWal->readLock==0 ){
47966 pWal->readLock = -1;
48351 ** on the pWal->readLock byte. If the WAL is already in locking_mode=NORMAL
48358 ** locking_mode=EXCLUSIVE. This means that the pWal->readLock must
48374 /* pWal->readLock is usually set, but might be -1 if there was a
48380 assert( pWal->readLock>=0 || pWal->lockError );
48381 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
48386 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
48396 assert( pWal->readLock>=0 );
48397 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
48422 assert( pWal==0 || pWal->readLock>=0 );
51667 ** also acquire a readlock on that file.
70598 ** on which the lock is acquired. A readlock is obtained if P3==0 or