Lines Matching refs:eState
52262 u8 eState; /* Pager state (OPEN, READER, WRITER_LOCKED..) */
52475 assert( p->eState==PAGER_OPEN
52476 || p->eState==PAGER_READER
52477 || p->eState==PAGER_WRITER_LOCKED
52478 || p->eState==PAGER_WRITER_CACHEMOD
52479 || p->eState==PAGER_WRITER_DBMOD
52480 || p->eState==PAGER_WRITER_FINISHED
52481 || p->eState==PAGER_ERROR
52511 assert( p->eState!=PAGER_ERROR && p->eState!=PAGER_OPEN );
52521 switch( p->eState ){
52629 , p->eState==PAGER_OPEN ? "OPEN" :
52630 p->eState==PAGER_READER ? "READER" :
52631 p->eState==PAGER_WRITER_LOCKED ? "WRITER_LOCKED" :
52632 p->eState==PAGER_WRITER_CACHEMOD ? "WRITER_CACHEMOD" :
52633 p->eState==PAGER_WRITER_DBMOD ? "WRITER_DBMOD" :
52634 p->eState==PAGER_WRITER_FINISHED ? "WRITER_FINISHED" :
52635 p->eState==PAGER_ERROR ? "ERROR" : "?error?"
52884 assert( pPager->eState!=PAGER_ERROR );
53441 assert( pPager->eState==PAGER_READER
53442 || pPager->eState==PAGER_OPEN
53443 || pPager->eState==PAGER_ERROR
53453 pPager->eState = PAGER_OPEN;
53481 if( rc!=SQLITE_OK && pPager->eState==PAGER_ERROR ){
53489 assert( pPager->errCode || pPager->eState!=PAGER_ERROR );
53490 pPager->eState = PAGER_OPEN;
53503 pPager->eState = PAGER_OPEN;
53505 pPager->eState = (isOpen(pPager->jfd) ? PAGER_OPEN : PAGER_READER);
53546 pPager->eState = PAGER_ERROR;
53648 assert( pPager->eState!=PAGER_ERROR );
53649 if( pPager->eState<PAGER_WRITER_LOCKED && pPager->eLock<RESERVED_LOCK ){
53754 pPager->eState = PAGER_READER;
53778 if( pPager->eState!=PAGER_ERROR && pPager->eState!=PAGER_OPEN ){
53780 if( pPager->eState>=PAGER_WRITER_LOCKED ){
53785 assert( pPager->eState==PAGER_READER );
53888 assert( pPager->eState>=PAGER_WRITER_CACHEMOD
53889 || (pPager->eState==PAGER_OPEN && pPager->eLock==EXCLUSIVE_LOCK)
53891 assert( pPager->eState>=PAGER_WRITER_CACHEMOD || isMainJrnl );
53977 assert( pPager->eState!=PAGER_OPEN || pPg==0 || pPager->tempFile );
53988 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
54221 assert( pPager->eState!=PAGER_ERROR );
54222 assert( pPager->eState!=PAGER_READER );
54225 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
54532 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
54580 assert( pPager->eState>=PAGER_READER && !MEMDB );
54802 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
54839 assert( pPager->eState==PAGER_OPEN );
54892 assert( pPager->eState==PAGER_OPEN );
54963 assert( pPager->eState!=PAGER_ERROR );
54964 assert( pPager->eState>=PAGER_WRITER_LOCKED );
55329 if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){
55390 assert( pPager->eState!=PAGER_OPEN ); /* Called only by OP_MaxPgcnt */
55465 assert( pPager->eState>=PAGER_READER );
55466 assert( pPager->eState!=PAGER_WRITER_FINISHED );
55551 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
55818 assert( pPager->eState==PAGER_WRITER_CACHEMOD
55819 || pPager->eState==PAGER_WRITER_DBMOD
55921 pPager->eState = PAGER_WRITER_DBMOD;
55963 assert( pPager->tempFile || pPager->eState==PAGER_WRITER_DBMOD );
56191 || pPager->eState==PAGER_WRITER_CACHEMOD
56541 pPager->eState = PAGER_READER; /* Pretend we already have a lock */
56684 assert( pPager->eState==PAGER_OPEN );
56805 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
56808 if( !pagerUseWal(pPager) && pPager->eState==PAGER_OPEN ){
56899 pPager->eState = PAGER_OPEN;
56926 assert( pPager->eState==PAGER_OPEN );
56989 if( pPager->tempFile==0 && pPager->eState==PAGER_OPEN && rc==SQLITE_OK ){
56997 assert( pPager->eState==PAGER_OPEN );
56999 pPager->eState = PAGER_READER;
57089 assert( pPager->eState>=PAGER_READER );
57194 && (pPager->eState==PAGER_READER || (flags & PAGER_GET_READONLY))
57206 assert( pPager->eState>=PAGER_READER );
57224 if( pPager->eState>PAGER_READER || pPager->tempFile ){
57358 assert( pPager->eState==PAGER_WRITER_LOCKED );
57419 assert( pPager->eState==PAGER_WRITER_LOCKED );
57420 pPager->eState = PAGER_WRITER_CACHEMOD;
57447 assert( pPager->eState>=PAGER_READER && pPager->eState<PAGER_ERROR );
57450 if( ALWAYS(pPager->eState==PAGER_READER) ){
57493 pPager->eState = PAGER_WRITER_LOCKED;
57500 assert( rc==SQLITE_OK || pPager->eState==PAGER_READER );
57501 assert( rc!=SQLITE_OK || pPager->eState==PAGER_WRITER_LOCKED );
57577 assert( pPager->eState==PAGER_WRITER_LOCKED
57578 || pPager->eState==PAGER_WRITER_CACHEMOD
57579 || pPager->eState==PAGER_WRITER_DBMOD
57595 if( pPager->eState==PAGER_WRITER_LOCKED ){
57599 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
57620 if( pPager->eState!=PAGER_WRITER_DBMOD ){
57758 assert( pPager->eState>=PAGER_WRITER_LOCKED );
57841 assert( pPager->eState==PAGER_WRITER_CACHEMOD
57842 || pPager->eState==PAGER_WRITER_DBMOD
57948 assert( pPager->eState==PAGER_WRITER_CACHEMOD
57949 || pPager->eState==PAGER_WRITER_DBMOD
57950 || pPager->eState==PAGER_WRITER_LOCKED
57993 assert( pPager->eState==PAGER_WRITER_LOCKED
57994 || pPager->eState==PAGER_WRITER_CACHEMOD
57995 || pPager->eState==PAGER_WRITER_DBMOD
57996 || pPager->eState==PAGER_ERROR
58010 if( pPager->eState<PAGER_WRITER_CACHEMOD ) return SQLITE_OK;
58180 assert( pPager->eState==PAGER_WRITER_DBMOD );
58195 pPager->eState = PAGER_WRITER_FINISHED;
58225 assert( pPager->eState==PAGER_WRITER_LOCKED
58226 || pPager->eState==PAGER_WRITER_FINISHED
58227 || (pagerUseWal(pPager) && pPager->eState==PAGER_WRITER_CACHEMOD)
58242 if( pPager->eState==PAGER_WRITER_LOCKED
58247 pPager->eState = PAGER_READER;
58291 if( pPager->eState==PAGER_ERROR ) return pPager->errCode;
58292 if( pPager->eState<=PAGER_READER ) return SQLITE_OK;
58299 }else if( !isOpen(pPager->jfd) || pPager->eState==PAGER_WRITER_LOCKED ){
58300 int eState = pPager->eState;
58302 if( !MEMDB && eState>PAGER_WRITER_LOCKED ){
58308 pPager->eState = PAGER_ERROR;
58316 assert( pPager->eState==PAGER_READER || rc!=SQLITE_OK );
58373 a[3] = pPager->eState==PAGER_OPEN ? -1 : (int) pPager->dbSize;
58374 a[4] = pPager->eState;
58439 assert( pPager->eState>=PAGER_WRITER_LOCKED );
58479 assert( pPager->eState>=PAGER_WRITER_LOCKED );
58574 && pPager->eState>=PAGER_WRITER_CACHEMOD
58577 pPager->eState = PAGER_ERROR;
58672 assert( pPager->eState==PAGER_WRITER_CACHEMOD
58673 || pPager->eState==PAGER_WRITER_DBMOD
58898 assert( pPager->eState!=PAGER_ERROR );
58928 int state = pPager->eState;
58933 if( pPager->eState==PAGER_READER ){
58945 assert( state==pPager->eState );
58970 if( pPager->eState>=PAGER_WRITER_CACHEMOD ) return 0;
59127 assert( pPager->eState==PAGER_OPEN || pbOpen );
59128 assert( pPager->eState==PAGER_READER || !pbOpen );
59141 pPager->eState = PAGER_OPEN;
59311 assert( pPager->eState>=PAGER_READER );
63838 u8 eState; /* One of the CURSOR_XXX constants (see below) */
64882 p->eState = CURSOR_INVALID;
64993 assert( CURSOR_VALID==pCur->eState );
65036 assert( CURSOR_VALID==pCur->eState || CURSOR_SKIPNEXT==pCur->eState );
65043 if( pCur->eState==CURSOR_SKIPNEXT ){
65044 pCur->eState = CURSOR_VALID;
65052 pCur->eState = CURSOR_REQUIRESEEK;
65107 if( p->eState==CURSOR_VALID || p->eState==CURSOR_SKIPNEXT ){
65129 pCur->eState = CURSOR_INVALID;
65179 assert( pCur->eState>=CURSOR_REQUIRESEEK );
65180 if( pCur->eState==CURSOR_FAULT ){
65183 pCur->eState = CURSOR_INVALID;
65192 assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_INVALID );
65194 if( pCur->skipNext && pCur->eState==CURSOR_VALID ){
65195 pCur->eState = CURSOR_SKIPNEXT;
65202 (p->eState>=CURSOR_REQUIRESEEK ? \
65221 assert( offsetof(BtCursor, eState)==0 );
65222 assert( sizeof(pCur->eState)==1 );
65233 assert( offsetof(BtCursor, eState)==0 );
65254 assert( pCur->eState!=CURSOR_VALID );
65260 if( pCur->eState!=CURSOR_VALID ){
67591 && pCur->eState!=CURSOR_FAULT ) r++;
68500 if( p->eState==CURSOR_VALID || p->eState==CURSOR_SKIPNEXT ){
68509 p->eState = CURSOR_FAULT;
68771 pCur->eState = CURSOR_INVALID;
68899 return pCur && pCur->eState==CURSOR_VALID;
68904 return pCur->eState==CURSOR_VALID;
68915 assert( pCur->eState==CURSOR_VALID );
68940 assert( pCur->eState==CURSOR_VALID );
68958 assert( pCur->eState==CURSOR_VALID );
68978 assert( pCur->eState==CURSOR_VALID );
69137 assert( pCur->eState==CURSOR_VALID );
69322 assert( pCur->eState==CURSOR_VALID );
69341 if ( pCur->eState==CURSOR_INVALID ){
69349 if( pCur->eState==CURSOR_VALID ){
69383 assert( pCur->eState==CURSOR_VALID );
69434 assert( pCur->eState==CURSOR_VALID );
69482 assert( pCur->eState==CURSOR_VALID );
69528 assert( pCur->eState < CURSOR_REQUIRESEEK || pCur->iPage<0 );
69541 pCur->eState = CURSOR_INVALID;
69545 if( pCur->eState>=CURSOR_REQUIRESEEK ){
69546 if( pCur->eState==CURSOR_FAULT ){
69555 pCur->eState = CURSOR_INVALID;
69586 pCur->eState = CURSOR_VALID;
69591 pCur->eState = CURSOR_VALID;
69594 pCur->eState = CURSOR_INVALID;
69613 assert( pCur->eState==CURSOR_VALID );
69638 assert( pCur->eState==CURSOR_VALID );
69684 if( CURSOR_VALID==pCur->eState && (pCur->curFlags & BTCF_AtLast)!=0 ){
69701 assert( pCur->eState==CURSOR_VALID );
69761 assert( pCur->eState!=CURSOR_VALID || (pIdxKey==0)==(pCur->curIntKey!=0) );
69766 && pCur->eState==CURSOR_VALID && (pCur->curFlags & BTCF_ValidNKey)!=0
69820 assert( pCur->eState==CURSOR_VALID );
70003 return (CURSOR_VALID!=pCur->eState);
70021 if( NEVER(pCur->eState!=CURSOR_VALID) ) return -1;
70057 if( pCur->eState!=CURSOR_VALID ){
70063 if( CURSOR_INVALID==pCur->eState ){
70066 if( pCur->eState==CURSOR_SKIPNEXT ){
70067 pCur->eState = CURSOR_VALID;
70103 pCur->eState = CURSOR_INVALID;
70128 if( pCur->eState!=CURSOR_VALID ) return btreeNext(pCur);
70168 if( pCur->eState!=CURSOR_VALID ){
70173 if( CURSOR_INVALID==pCur->eState ){
70176 if( CURSOR_SKIPNEXT==pCur->eState ){
70177 pCur->eState = CURSOR_VALID;
70192 pCur->eState = CURSOR_INVALID;
70216 if( pCur->eState!=CURSOR_VALID
72697 && pOther->eState==CURSOR_VALID
72982 if( pCur->eState==CURSOR_FAULT ){
73103 assert( pCur->eState==CURSOR_VALID
73104 || (pCur->eState==CURSOR_INVALID && loc)
73206 pCur->eState = CURSOR_INVALID;
73218 pCur->eState = CURSOR_REQUIRESEEK;
73264 if( pCur->eState==CURSOR_REQUIRESEEK ){
73268 assert( pCur->eState==CURSOR_VALID );
73399 pCur->eState = CURSOR_SKIPNEXT;
73410 pCur->eState = CURSOR_REQUIRESEEK;
74754 assert( pCsr->eState!=CURSOR_REQUIRESEEK );
74755 if( pCsr->eState!=CURSOR_VALID ){
163124 int eState; /* Parser state when parsing URI */
163177 eState = 0;
163195 && (eState!=0 || c!='?')
163196 && (eState!=1 || (c!='=' && c!='&'))
163197 && (eState!=2 || c!='&')
163210 }else if( eState==1 && (c=='&' || c=='=') ){
163219 eState = 2;
163222 }else if( (eState==0 && c=='?') || (eState==2 && c=='&') ){
163224 eState = 1;
163228 if( eState==1 ) zFile[iOut++] = '\0';
172540 int eState = 0;
172559 switch( eState ){
172563 eState = 1;
172580 eState = 2;
172585 eState = 0;
172587 eState = 3;
172595 default: assert( eState==3 );
172599 eState = 2;
218545 int eState; /* See above */
218604 if( pCtx->eState==2 ){
218608 pCtx->eState = 1;
218611 pCtx->eState = 0;
218620 if( pCtx->eState ){
218628 pCtx->eState = 2;
218631 pCtx->eState = fts5IndexColsetTest(pCtx->pColset, iCol);
218632 if( pCtx->eState ){
218704 sCtx.eState = fts5IndexColsetTest(pColset, 0);
218705 assert( sCtx.eState==0 || sCtx.eState==1 );
222280 int eState; /* 0==closed, 1==open, 2==synced */
222468 assert( p->ts.eState==0 );
222469 p->ts.eState = 1;
222474 assert( p->ts.eState==1 );
222475 p->ts.eState = 2;
222479 assert( p->ts.eState==2 );
222480 p->ts.eState = 0;
222484 assert( p->ts.eState==1 || p->ts.eState==2 || p->ts.eState==0 );
222485 p->ts.eState = 0;
222489 assert( p->ts.eState==1 );
222496 assert( p->ts.eState==1 );
222503 assert( p->ts.eState==1 );
223800 assert( pTab->ts.eState==1 );