Lines Matching refs:eLock

48623   u8 eLock;                   /* Current lock held on database file */
48842 assert( p->tempFile==0 || p->eLock==EXCLUSIVE_LOCK );
48872 assert( pPager->changeCountDone==0 || pPager->eLock>=RESERVED_LOCK );
48873 assert( p->eLock!=PENDING_LOCK );
48884 assert( p->eLock!=UNKNOWN_LOCK );
48885 assert( p->eLock>=SHARED_LOCK );
48889 assert( p->eLock!=UNKNOWN_LOCK );
48892 assert( p->eLock>=RESERVED_LOCK );
48901 assert( p->eLock!=UNKNOWN_LOCK );
48909 assert( p->eLock>=RESERVED_LOCK );
48920 assert( p->eLock==EXCLUSIVE_LOCK );
48923 assert( p->eLock>=EXCLUSIVE_LOCK );
48933 assert( p->eLock==EXCLUSIVE_LOCK );
48987 , p->eLock==NO_LOCK ? "NO_LOCK" :
48988 p->eLock==RESERVED_LOCK ? "RESERVED" :
48989 p->eLock==EXCLUSIVE_LOCK ? "EXCLUSIVE" :
48990 p->eLock==SHARED_LOCK ? "SHARED" :
48991 p->eLock==UNKNOWN_LOCK ? "UNKNOWN" : "?error?"
49108 static int pagerUnlockDb(Pager *pPager, int eLock){
49111 assert( !pPager->exclusiveMode || pPager->eLock==eLock );
49112 assert( eLock==NO_LOCK || eLock==SHARED_LOCK );
49113 assert( eLock!=NO_LOCK || pagerUseWal(pPager)==0 );
49115 assert( pPager->eLock>=eLock );
49116 rc = pPager->noLock ? SQLITE_OK : sqlite3OsUnlock(pPager->fd, eLock);
49117 if( pPager->eLock!=UNKNOWN_LOCK ){
49118 pPager->eLock = (u8)eLock;
49120 IOTRACE(("UNLOCK %p %d\n", pPager, eLock))
49135 static int pagerLockDb(Pager *pPager, int eLock){
49138 assert( eLock==SHARED_LOCK || eLock==RESERVED_LOCK || eLock==EXCLUSIVE_LOCK );
49139 if( pPager->eLock<eLock || pPager->eLock==UNKNOWN_LOCK ){
49140 rc = pPager->noLock ? SQLITE_OK : sqlite3OsLock(pPager->fd, eLock);
49141 if( rc==SQLITE_OK && (pPager->eLock!=UNKNOWN_LOCK||eLock==EXCLUSIVE_LOCK) ){
49142 pPager->eLock = (u8)eLock;
49143 IOTRACE(("LOCK %p %d\n", pPager, eLock))
49835 pPager->eLock = UNKNOWN_LOCK;
50003 if( pPager->eState<PAGER_WRITER_LOCKED && pPager->eLock<RESERVED_LOCK ){
50094 assert( pPager->eLock==EXCLUSIVE_LOCK );
50278 || (pPager->eState==PAGER_OPEN && pPager->eLock==EXCLUSIVE_LOCK)
50634 assert( pPager->eLock==EXCLUSIVE_LOCK );
51249 assert( pPager->eLock>=SHARED_LOCK );
51302 assert( pPager->eLock>=SHARED_LOCK );
51896 assert( (pPager->eLock>=locktype)
51897 || (pPager->eLock==NO_LOCK && locktype==SHARED_LOCK)
51898 || (pPager->eLock==RESERVED_LOCK && locktype==EXCLUSIVE_LOCK)
52343 assert( pPager->eLock==EXCLUSIVE_LOCK );
52847 pPager->eLock = EXCLUSIVE_LOCK; /* Pretend we are in EXCLUSIVE mode */
53128 assert( pPager->tempFile==0 || pPager->eLock==EXCLUSIVE_LOCK );
53132 assert( pPager->eLock==NO_LOCK || pPager->eLock==UNKNOWN_LOCK );
53139 if( pPager->eLock<=SHARED_LOCK ){
53243 assert( (pPager->eLock==SHARED_LOCK)
53244 || (pPager->exclusiveMode && pPager->eLock>SHARED_LOCK)
55267 if( pPager->eLock>=RESERVED_LOCK ){
55401 assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK );
55422 assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK );
59718 u8 eLock; /* READ_LOCK or WRITE_LOCK */
60627 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
60628 && pLock->eLock>=eLockType
60678 static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock){
60683 assert( eLock==READ_LOCK || eLock==WRITE_LOCK );
60685 assert( !(p->db->flags&SQLITE_ReadUncommit)||eLock==WRITE_LOCK||iTab==1 );
60691 assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) );
60692 assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE );
60717 assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK );
60718 assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK);
60719 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){
60721 if( eLock==WRITE_LOCK ){
60750 static int setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock){
60756 assert( eLock==READ_LOCK || eLock==WRITE_LOCK );
60763 assert( 0==(p->db->flags&SQLITE_ReadUncommit) || eLock==WRITE_LOCK );
60768 assert( SQLITE_OK==querySharedCacheTableLock(p, iTable, eLock) );
60797 if( eLock>pLock->eLock ){
60798 pLock->eLock = eLock;
60825 assert( pLock->pBtree->inTrans>=pLock->eLock );
60865 assert( pLock->eLock==READ_LOCK || pLock->pBtree==p );
60866 pLock->eLock = READ_LOCK;
63785 p->lock.eLock = READ_LOCK;
177022 static int rbuVfsLock(sqlite3_file *pFile, int eLock){
177028 if( eLock==SQLITE_LOCK_EXCLUSIVE
177035 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
177044 static int rbuVfsUnlock(sqlite3_file *pFile, int eLock){
177046 return p->pReal->pMethods->xUnlock(p->pReal, eLock);