• Home
  • Raw
  • Download

Lines Matching refs:eState

48638   u8 eState;                  /* Pager state (OPEN, READER, WRITER_LOCKED..) */
48845 assert( p->eState==PAGER_OPEN
48846 || p->eState==PAGER_READER
48847 || p->eState==PAGER_WRITER_LOCKED
48848 || p->eState==PAGER_WRITER_CACHEMOD
48849 || p->eState==PAGER_WRITER_DBMOD
48850 || p->eState==PAGER_WRITER_FINISHED
48851 || p->eState==PAGER_ERROR
48881 assert( p->eState!=PAGER_ERROR && p->eState!=PAGER_OPEN );
48891 switch( p->eState ){
48995 , p->eState==PAGER_OPEN ? "OPEN" :
48996 p->eState==PAGER_READER ? "READER" :
48997 p->eState==PAGER_WRITER_LOCKED ? "WRITER_LOCKED" :
48998 p->eState==PAGER_WRITER_CACHEMOD ? "WRITER_CACHEMOD" :
48999 p->eState==PAGER_WRITER_DBMOD ? "WRITER_DBMOD" :
49000 p->eState==PAGER_WRITER_FINISHED ? "WRITER_FINISHED" :
49001 p->eState==PAGER_ERROR ? "ERROR" : "?error?"
49253 assert( pPager->eState!=PAGER_ERROR );
49748 assert( pPager->eState>PAGER_OPEN );
49810 assert( pPager->eState==PAGER_READER
49811 || pPager->eState==PAGER_OPEN
49812 || pPager->eState==PAGER_ERROR
49822 pPager->eState = PAGER_OPEN;
49850 if( rc!=SQLITE_OK && pPager->eState==PAGER_ERROR ){
49858 assert( pPager->errCode || pPager->eState!=PAGER_ERROR );
49860 pPager->eState = PAGER_OPEN;
49873 pPager->eState = PAGER_OPEN;
49875 pPager->eState = (isOpen(pPager->jfd) ? PAGER_OPEN : PAGER_READER);
49916 pPager->eState = PAGER_ERROR;
50018 assert( pPager->eState!=PAGER_ERROR );
50019 if( pPager->eState<PAGER_WRITER_LOCKED && pPager->eLock<RESERVED_LOCK ){
50125 pPager->eState = PAGER_READER;
50149 if( pPager->eState!=PAGER_ERROR && pPager->eState!=PAGER_OPEN ){
50151 if( pPager->eState>=PAGER_WRITER_LOCKED ){
50156 assert( pPager->eState==PAGER_READER );
50293 assert( pPager->eState>=PAGER_WRITER_CACHEMOD
50294 || (pPager->eState==PAGER_OPEN && pPager->eLock==EXCLUSIVE_LOCK)
50296 assert( pPager->eState>=PAGER_WRITER_CACHEMOD || isMainJrnl );
50383 assert( pPager->eState!=PAGER_OPEN || pPg==0 || pPager->tempFile );
50394 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
50642 assert( pPager->eState!=PAGER_ERROR );
50643 assert( pPager->eState!=PAGER_READER );
50646 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
50955 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
51003 assert( pPager->eState>=PAGER_READER && !MEMDB );
51227 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
51264 assert( pPager->eState==PAGER_OPEN );
51317 assert( pPager->eState==PAGER_OPEN );
51388 assert( pPager->eState!=PAGER_ERROR );
51389 assert( pPager->eState>=PAGER_WRITER_LOCKED );
51756 if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){
51812 assert( pPager->eState!=PAGER_OPEN ); /* Called only by OP_MaxPgcnt */
51884 assert( pPager->eState>=PAGER_READER );
51885 assert( pPager->eState!=PAGER_WRITER_FINISHED );
51970 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
52213 assert( pPager->eState==PAGER_WRITER_CACHEMOD
52214 || pPager->eState==PAGER_WRITER_DBMOD
52316 pPager->eState = PAGER_WRITER_DBMOD;
52358 assert( pPager->tempFile || pPager->eState==PAGER_WRITER_DBMOD );
52592 || pPager->eState==PAGER_WRITER_CACHEMOD
52862 pPager->eState = PAGER_READER; /* Pretend we already have a lock */
53016 assert( pPager->eState==PAGER_OPEN );
53137 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
53140 if( !pagerUseWal(pPager) && pPager->eState==PAGER_OPEN ){
53231 pPager->eState = PAGER_OPEN;
53258 assert( pPager->eState==PAGER_OPEN );
53321 if( pPager->tempFile==0 && pPager->eState==PAGER_OPEN && rc==SQLITE_OK ){
53329 assert( pPager->eState==PAGER_OPEN );
53331 pPager->eState = PAGER_READER;
53421 assert( pPager->eState>=PAGER_READER );
53526 && (pPager->eState==PAGER_READER || (flags & PAGER_GET_READONLY))
53541 assert( pPager->eState>=PAGER_READER );
53559 if( pPager->eState>PAGER_READER || pPager->tempFile ){
53693 assert( pPager->eState==PAGER_WRITER_LOCKED );
53754 assert( pPager->eState==PAGER_WRITER_LOCKED );
53755 pPager->eState = PAGER_WRITER_CACHEMOD;
53782 assert( pPager->eState>=PAGER_READER && pPager->eState<PAGER_ERROR );
53785 if( ALWAYS(pPager->eState==PAGER_READER) ){
53828 pPager->eState = PAGER_WRITER_LOCKED;
53835 assert( rc==SQLITE_OK || pPager->eState==PAGER_READER );
53836 assert( rc!=SQLITE_OK || pPager->eState==PAGER_WRITER_LOCKED );
53912 assert( pPager->eState==PAGER_WRITER_LOCKED
53913 || pPager->eState==PAGER_WRITER_CACHEMOD
53914 || pPager->eState==PAGER_WRITER_DBMOD
53930 if( pPager->eState==PAGER_WRITER_LOCKED ){
53934 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
53955 if( pPager->eState!=PAGER_WRITER_DBMOD ){
54093 assert( pPager->eState>=PAGER_WRITER_LOCKED );
54176 assert( pPager->eState==PAGER_WRITER_CACHEMOD
54177 || pPager->eState==PAGER_WRITER_DBMOD
54286 assert( pPager->eState==PAGER_WRITER_CACHEMOD
54287 || pPager->eState==PAGER_WRITER_DBMOD
54288 || pPager->eState==PAGER_WRITER_LOCKED
54331 assert( pPager->eState==PAGER_WRITER_LOCKED
54332 || pPager->eState==PAGER_WRITER_CACHEMOD
54333 || pPager->eState==PAGER_WRITER_DBMOD
54334 || pPager->eState==PAGER_ERROR
54348 if( pPager->eState<PAGER_WRITER_CACHEMOD ) return SQLITE_OK;
54503 assert( pPager->eState==PAGER_WRITER_DBMOD );
54518 pPager->eState = PAGER_WRITER_FINISHED;
54547 assert( pPager->eState==PAGER_WRITER_LOCKED
54548 || pPager->eState==PAGER_WRITER_FINISHED
54549 || (pagerUseWal(pPager) && pPager->eState==PAGER_WRITER_CACHEMOD)
54564 if( pPager->eState==PAGER_WRITER_LOCKED
54569 pPager->eState = PAGER_READER;
54614 if( pPager->eState==PAGER_ERROR ) return pPager->errCode;
54615 if( pPager->eState<=PAGER_READER ) return SQLITE_OK;
54622 }else if( !isOpen(pPager->jfd) || pPager->eState==PAGER_WRITER_LOCKED ){
54623 int eState = pPager->eState;
54625 if( !MEMDB && eState>PAGER_WRITER_LOCKED ){
54631 pPager->eState = PAGER_ERROR;
54639 assert( pPager->eState==PAGER_READER || rc!=SQLITE_OK );
54696 a[3] = pPager->eState==PAGER_OPEN ? -1 : (int) pPager->dbSize;
54697 a[4] = pPager->eState;
54755 assert( pPager->eState>=PAGER_WRITER_LOCKED );
54795 assert( pPager->eState>=PAGER_WRITER_LOCKED );
54890 && pPager->eState>=PAGER_WRITER_CACHEMOD
54893 pPager->eState = PAGER_ERROR;
54991 return pPager->eState;
55028 assert( pPager->eState==PAGER_WRITER_CACHEMOD
55029 || pPager->eState==PAGER_WRITER_DBMOD
55257 assert( pPager->eState!=PAGER_ERROR );
55287 int state = pPager->eState;
55292 if( pPager->eState==PAGER_READER ){
55304 assert( state==pPager->eState );
55329 if( pPager->eState>=PAGER_WRITER_CACHEMOD ) return 0;
55486 assert( pPager->eState==PAGER_OPEN || pbOpen );
55487 assert( pPager->eState==PAGER_READER || !pbOpen );
55500 pPager->eState = PAGER_OPEN;
55609 assert( pPager->eState>=PAGER_READER );
59921 u8 eState; /* One of the CURSOR_XXX constants (see below) */
60963 p->eState = CURSOR_INVALID;
61074 assert( CURSOR_VALID==pCur->eState );
61111 assert( CURSOR_VALID==pCur->eState || CURSOR_SKIPNEXT==pCur->eState );
61115 if( pCur->eState==CURSOR_SKIPNEXT ){
61116 pCur->eState = CURSOR_VALID;
61124 pCur->eState = CURSOR_REQUIRESEEK;
61179 if( p->eState==CURSOR_VALID || p->eState==CURSOR_SKIPNEXT ){
61201 pCur->eState = CURSOR_INVALID;
61250 assert( pCur->eState>=CURSOR_REQUIRESEEK );
61251 if( pCur->eState==CURSOR_FAULT ){
61254 pCur->eState = CURSOR_INVALID;
61259 assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_INVALID );
61261 if( pCur->skipNext && pCur->eState==CURSOR_VALID ){
61262 pCur->eState = CURSOR_SKIPNEXT;
61269 (p->eState>=CURSOR_REQUIRESEEK ? \
61286 return pCur->eState!=CURSOR_VALID;
61296 assert( offsetof(BtCursor, eState)==0 );
61317 assert( pCur->eState!=CURSOR_VALID );
61323 if( pCur->eState!=CURSOR_VALID ){
63591 && pCur->eState!=CURSOR_FAULT ) r++;
64466 if( p->eState==CURSOR_VALID || p->eState==CURSOR_SKIPNEXT ){
64475 p->eState = CURSOR_FAULT;
64725 pCur->eState = CURSOR_INVALID;
64835 return pCur && pCur->eState==CURSOR_VALID;
64840 return pCur->eState==CURSOR_VALID;
64851 assert( pCur->eState==CURSOR_VALID );
64864 assert( pCur->eState==CURSOR_VALID );
64882 assert( pCur->eState==CURSOR_VALID );
65042 assert( pCur->eState==CURSOR_VALID );
65229 assert( pCur->eState==CURSOR_VALID );
65248 if ( pCur->eState==CURSOR_INVALID ){
65256 if( pCur->eState==CURSOR_VALID ){
65290 assert( pCur->eState==CURSOR_VALID );
65341 assert( pCur->eState==CURSOR_VALID );
65389 assert( pCur->eState==CURSOR_VALID );
65435 assert( pCur->eState < CURSOR_REQUIRESEEK || pCur->iPage<0 );
65448 pCur->eState = CURSOR_INVALID;
65452 if( pCur->eState>=CURSOR_REQUIRESEEK ){
65453 if( pCur->eState==CURSOR_FAULT ){
65462 pCur->eState = CURSOR_INVALID;
65493 pCur->eState = CURSOR_VALID;
65498 pCur->eState = CURSOR_VALID;
65501 pCur->eState = CURSOR_INVALID;
65520 assert( pCur->eState==CURSOR_VALID );
65545 assert( pCur->eState==CURSOR_VALID );
65591 if( CURSOR_VALID==pCur->eState && (pCur->curFlags & BTCF_AtLast)!=0 ){
65607 assert( pCur->eState==CURSOR_VALID );
65667 assert( pCur->eState!=CURSOR_VALID || (pIdxKey==0)==(pCur->curIntKey!=0) );
65672 && pCur->eState==CURSOR_VALID && (pCur->curFlags & BTCF_ValidNKey)!=0
65726 assert( pCur->eState==CURSOR_VALID );
65907 return (CURSOR_VALID!=pCur->eState);
65925 if( NEVER(pCur->eState!=CURSOR_VALID) ) return -1;
65961 assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID );
65962 if( pCur->eState!=CURSOR_VALID ){
65968 if( CURSOR_INVALID==pCur->eState ){
65972 assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_SKIPNEXT );
65973 pCur->eState = CURSOR_VALID;
66001 pCur->eState = CURSOR_INVALID;
66024 assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID );
66027 if( pCur->eState!=CURSOR_VALID ) return btreeNext(pCur);
66065 assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID );
66068 if( pCur->eState!=CURSOR_VALID ){
66073 if( CURSOR_INVALID==pCur->eState ){
66077 assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_SKIPNEXT );
66078 pCur->eState = CURSOR_VALID;
66097 pCur->eState = CURSOR_INVALID;
66118 assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID );
66122 if( pCur->eState!=CURSOR_VALID
68606 if( pCur->eState==CURSOR_FAULT ){
68677 assert( pCur->eState==CURSOR_VALID || (pCur->eState==CURSOR_INVALID && loc) );
68767 pCur->eState = CURSOR_INVALID;
68779 pCur->eState = CURSOR_REQUIRESEEK;
68825 assert( pCur->eState==CURSOR_VALID );
68951 pCur->eState = CURSOR_SKIPNEXT;
68962 pCur->eState = CURSOR_REQUIRESEEK;
70283 assert( pCsr->eState!=CURSOR_REQUIRESEEK );
70284 if( pCsr->eState!=CURSOR_VALID ){
145964 int eState; /* Parser state when parsing URI */
146014 eState = 0;
146032 && (eState!=0 || c!='?')
146033 && (eState!=1 || (c!='=' && c!='&'))
146034 && (eState!=2 || c!='&')
146047 }else if( eState==1 && (c=='&' || c=='=') ){
146056 eState = 2;
146059 }else if( (eState==0 && c=='?') || (eState==2 && c=='&') ){
146061 eState = 1;
146065 if( eState==1 ) zFile[iOut++] = '\0';
155074 int eState = 0;
155093 switch( eState ){
155097 eState = 1;
155114 eState = 2;
155119 eState = 0;
155121 eState = 3;
155129 default: assert( eState==3 );
155133 eState = 2;
197240 int eState; /* See above */
197299 if( pCtx->eState==2 ){
197303 pCtx->eState = 1;
197306 pCtx->eState = 0;
197315 if( pCtx->eState ){
197323 pCtx->eState = 2;
197326 pCtx->eState = fts5IndexColsetTest(pCtx->pColset, iCol);
197327 if( pCtx->eState ){
197398 sCtx.eState = fts5IndexColsetTest(pColset, 0);
197399 assert( sCtx.eState==0 || sCtx.eState==1 );
200863 int eState; /* 0==closed, 1==open, 2==synced */
201056 assert( p->ts.eState==0 );
201057 p->ts.eState = 1;
201062 assert( p->ts.eState==1 );
201063 p->ts.eState = 2;
201067 assert( p->ts.eState==2 );
201068 p->ts.eState = 0;
201072 assert( p->ts.eState==1 || p->ts.eState==2 || p->ts.eState==0 );
201073 p->ts.eState = 0;
201077 assert( p->ts.eState==1 );
201084 assert( p->ts.eState==1 );
201091 assert( p->ts.eState==1 );
202279 assert( pTab->ts.eState==1 );