Home | History | Annotate | Download | only in dist

Lines Matching refs:readLock

42322     ** before establishing the readlock - to avoid a race condition we downgrade
52028 ** Undo a readlock
67942 i16 readLock; /* Which read lock is being held. -1 for none */
69132 pRet->readLock = -1;
69484 assert( pWal->readLock<0 || bLock==0 );
69842 ** the Wal.readLock, Wal.writeLock and Wal.ckptLock variables. All other
69860 (pWal->readLock<0 ? 0 : (S << WAL_READ_LOCK(pWal->readLock)))
69880 ** by the connection, is consistent with the Wal.readLock, Wal.writeLock
69890 (pWal->readLock<0 ? 0 : (S << WAL_READ_LOCK(pWal->readLock)))
70230 pWal->readLock = 0;
70415 ** WAL_READ_LOCK(pWal->readLock). The pWal->readLock integer is
70416 ** in the range 0 <= pWal->readLock < WAL_NREADER. If pWal->readLock==(-1)
70419 ** including frame number aReadMark[pWal->readLock]. The reader will
70420 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
70421 ** Or if pWal->readLock==0, then the reader will ignore the WAL
70424 ** this routine will always set pWal->readLock>0 on success.
70426 ** lock on WAL_READ_LOCK(pWal->readLock) and set pWal->readLock to -1.
70442 assert( pWal->readLock<0 ); /* Not currently locked */
70577 pWal->readLock = 0;
70683 pWal->readLock = (i16)mxI;
70760 assert( pWal->readLock>=0 );
70852 assert( pWal->readLock>0 || pWal->hdr.mxFrame==0 );
70853 assert( pInfo->aReadMark[pWal->readLock]<=pSnapshot->mxFrame );
70864 assert( pWal->readLock>0 );
70923 assert( pWal->writeLock==0 || pWal->readLock<0 );
70925 if( pWal->readLock>=0 ){
70927 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
70928 pWal->readLock = -1;
70951 assert( pWal->readLock>=0 || pWal->lockError );
70955 ** in this case as an optimization. Likewise, if pWal->readLock==0,
70959 if( iLast==0 || (pWal->readLock==0 && pWal->bShmUnreliable==0) ){
71094 if( pWal && ALWAYS(pWal->readLock>=0) ){
71129 assert( pWal->readLock>=0 );
71294 if( pWal->readLock==0 ){
71318 pWal->readLock = -1;
71869 ** on the pWal->readLock byte. If the WAL is already in locking_mode=NORMAL
71876 ** locking_mode=EXCLUSIVE. This means that the pWal->readLock must
71892 /* pWal->readLock is usually set, but might be -1 if there was a
71899 assert( pWal->readLock>=0 || pWal->lockError );
71901 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
71906 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
71916 assert( pWal->readLock>=0 );
71917 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
71945 assert( pWal->readLock>=0 && pWal->writeLock==0 );
72049 assert( pWal==0 || pWal->readLock>=0 );
76390 ** also acquire a readlock on that file.
104702 ** on which the lock is acquired. A readlock is obtained if P3==0 or