Lines Matching refs:eLock
48639 u8 eLock; /* Current lock held on database file */
48858 assert( p->tempFile==0 || p->eLock==EXCLUSIVE_LOCK );
48888 assert( pPager->changeCountDone==0 || pPager->eLock>=RESERVED_LOCK );
48889 assert( p->eLock!=PENDING_LOCK );
48900 assert( p->eLock!=UNKNOWN_LOCK );
48901 assert( p->eLock>=SHARED_LOCK );
48905 assert( p->eLock!=UNKNOWN_LOCK );
48908 assert( p->eLock>=RESERVED_LOCK );
48917 assert( p->eLock!=UNKNOWN_LOCK );
48925 assert( p->eLock>=RESERVED_LOCK );
48936 assert( p->eLock==EXCLUSIVE_LOCK );
48939 assert( p->eLock>=EXCLUSIVE_LOCK );
48949 assert( p->eLock==EXCLUSIVE_LOCK );
49003 , p->eLock==NO_LOCK ? "NO_LOCK" :
49004 p->eLock==RESERVED_LOCK ? "RESERVED" :
49005 p->eLock==EXCLUSIVE_LOCK ? "EXCLUSIVE" :
49006 p->eLock==SHARED_LOCK ? "SHARED" :
49007 p->eLock==UNKNOWN_LOCK ? "UNKNOWN" : "?error?"
49124 static int pagerUnlockDb(Pager *pPager, int eLock){
49127 assert( !pPager->exclusiveMode || pPager->eLock==eLock );
49128 assert( eLock==NO_LOCK || eLock==SHARED_LOCK );
49129 assert( eLock!=NO_LOCK || pagerUseWal(pPager)==0 );
49131 assert( pPager->eLock>=eLock );
49132 rc = pPager->noLock ? SQLITE_OK : sqlite3OsUnlock(pPager->fd, eLock);
49133 if( pPager->eLock!=UNKNOWN_LOCK ){
49134 pPager->eLock = (u8)eLock;
49136 IOTRACE(("UNLOCK %p %d\n", pPager, eLock))
49151 static int pagerLockDb(Pager *pPager, int eLock){
49154 assert( eLock==SHARED_LOCK || eLock==RESERVED_LOCK || eLock==EXCLUSIVE_LOCK );
49155 if( pPager->eLock<eLock || pPager->eLock==UNKNOWN_LOCK ){
49156 rc = pPager->noLock ? SQLITE_OK : sqlite3OsLock(pPager->fd, eLock);
49157 if( rc==SQLITE_OK && (pPager->eLock!=UNKNOWN_LOCK||eLock==EXCLUSIVE_LOCK) ){
49158 pPager->eLock = (u8)eLock;
49159 IOTRACE(("LOCK %p %d\n", pPager, eLock))
49851 pPager->eLock = UNKNOWN_LOCK;
50019 if( pPager->eState<PAGER_WRITER_LOCKED && pPager->eLock<RESERVED_LOCK ){
50110 assert( pPager->eLock==EXCLUSIVE_LOCK );
50294 || (pPager->eState==PAGER_OPEN && pPager->eLock==EXCLUSIVE_LOCK)
50650 assert( pPager->eLock==EXCLUSIVE_LOCK );
51265 assert( pPager->eLock>=SHARED_LOCK );
51318 assert( pPager->eLock>=SHARED_LOCK );
51912 assert( (pPager->eLock>=locktype)
51913 || (pPager->eLock==NO_LOCK && locktype==SHARED_LOCK)
51914 || (pPager->eLock==RESERVED_LOCK && locktype==EXCLUSIVE_LOCK)
52359 assert( pPager->eLock==EXCLUSIVE_LOCK );
52863 pPager->eLock = EXCLUSIVE_LOCK; /* Pretend we are in EXCLUSIVE mode */
53144 assert( pPager->tempFile==0 || pPager->eLock==EXCLUSIVE_LOCK );
53148 assert( pPager->eLock==NO_LOCK || pPager->eLock==UNKNOWN_LOCK );
53155 if( pPager->eLock<=SHARED_LOCK ){
53259 assert( (pPager->eLock==SHARED_LOCK)
53260 || (pPager->exclusiveMode && pPager->eLock>SHARED_LOCK)
55283 if( pPager->eLock>=RESERVED_LOCK ){
55417 assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK );
55438 assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK );
59734 u8 eLock; /* READ_LOCK or WRITE_LOCK */
60643 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
60644 && pLock->eLock>=eLockType
60694 static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock){
60699 assert( eLock==READ_LOCK || eLock==WRITE_LOCK );
60701 assert( !(p->db->flags&SQLITE_ReadUncommit)||eLock==WRITE_LOCK||iTab==1 );
60707 assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) );
60708 assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE );
60733 assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK );
60734 assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK);
60735 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){
60737 if( eLock==WRITE_LOCK ){
60766 static int setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock){
60772 assert( eLock==READ_LOCK || eLock==WRITE_LOCK );
60779 assert( 0==(p->db->flags&SQLITE_ReadUncommit) || eLock==WRITE_LOCK );
60784 assert( SQLITE_OK==querySharedCacheTableLock(p, iTable, eLock) );
60813 if( eLock>pLock->eLock ){
60814 pLock->eLock = eLock;
60841 assert( pLock->pBtree->inTrans>=pLock->eLock );
60881 assert( pLock->eLock==READ_LOCK || pLock->pBtree==p );
60882 pLock->eLock = READ_LOCK;
63801 p->lock.eLock = READ_LOCK;
177050 static int rbuVfsLock(sqlite3_file *pFile, int eLock){
177056 if( eLock==SQLITE_LOCK_EXCLUSIVE
177063 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
177072 static int rbuVfsUnlock(sqlite3_file *pFile, int eLock){
177074 return p->pReal->pMethods->xUnlock(p->pReal, eLock);