Lines Matching defs:eState
38561 ** The Pager.eState variable stores the current 'state' of a pager. A
38886 ** eState
39059 u8 eState; /* Pager state (OPEN, READER, WRITER_LOCKED..) */
39233 assert( p->eState==PAGER_OPEN
39234 || p->eState==PAGER_READER
39235 || p->eState==PAGER_WRITER_LOCKED
39236 || p->eState==PAGER_WRITER_CACHEMOD
39237 || p->eState==PAGER_WRITER_DBMOD
39238 || p->eState==PAGER_WRITER_FINISHED
39239 || p->eState==PAGER_ERROR
39268 assert( p->eState!=PAGER_ERROR && p->eState!=PAGER_OPEN );
39278 switch( p->eState ){
39380 , p->eState==PAGER_OPEN ? "OPEN" :
39381 p->eState==PAGER_READER ? "READER" :
39382 p->eState==PAGER_WRITER_LOCKED ? "WRITER_LOCKED" :
39383 p->eState==PAGER_WRITER_CACHEMOD ? "WRITER_CACHEMOD" :
39384 p->eState==PAGER_WRITER_DBMOD ? "WRITER_DBMOD" :
39385 p->eState==PAGER_WRITER_FINISHED ? "WRITER_FINISHED" :
39386 p->eState==PAGER_ERROR ? "ERROR" : "?error?"
39593 assert( pPager->eState!=PAGER_ERROR );
40153 assert( pPager->eState==PAGER_READER
40154 || pPager->eState==PAGER_OPEN
40155 || pPager->eState==PAGER_ERROR
40165 pPager->eState = PAGER_OPEN;
40193 if( rc!=SQLITE_OK && pPager->eState==PAGER_ERROR ){
40201 assert( pPager->errCode || pPager->eState!=PAGER_ERROR );
40203 pPager->eState = PAGER_OPEN;
40215 pPager->eState = PAGER_OPEN;
40253 pPager->eState = PAGER_ERROR;
40321 ** eState==PAGER_NONE and eLock==EXCLUSIVE_LOCK.
40325 ** read-transaction, this function is called with eState==PAGER_READER
40329 assert( pPager->eState!=PAGER_ERROR );
40330 if( pPager->eState<PAGER_WRITER_LOCKED && pPager->eLock<RESERVED_LOCK ){
40403 pPager->eState = PAGER_READER;
40427 if( pPager->eState!=PAGER_ERROR && pPager->eState!=PAGER_OPEN ){
40429 if( pPager->eState>=PAGER_WRITER_LOCKED ){
40434 assert( pPager->eState==PAGER_READER );
40552 assert( pPager->eState>=PAGER_WRITER_CACHEMOD
40553 || (pPager->eState==PAGER_OPEN && pPager->eLock==EXCLUSIVE_LOCK)
40555 assert( pPager->eState>=PAGER_WRITER_CACHEMOD || isMainJrnl );
40642 assert( pPager->eState!=PAGER_OPEN || pPg==0 );
40653 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
40899 assert( pPager->eState!=PAGER_ERROR );
40900 assert( pPager->eState!=PAGER_READER );
40903 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
41197 && (pPager->eState>=PAGER_WRITER_DBMOD || pPager->eState==PAGER_OPEN)
41240 assert( pPager->eState>=PAGER_READER && !MEMDB );
41460 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
41496 assert( pPager->eState==PAGER_OPEN );
41551 assert( pPager->eState==PAGER_OPEN );
41623 assert( pPager->eState!=PAGER_ERROR );
41624 assert( pPager->eState>=PAGER_WRITER_LOCKED );
41936 if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){
41987 assert( pPager->eState!=PAGER_OPEN ); /* Called only by OP_MaxPgcnt */
42059 assert( pPager->eState>=PAGER_READER );
42060 assert( pPager->eState!=PAGER_WRITER_FINISHED );
42140 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
42291 assert( pPager->eState==PAGER_WRITER_CACHEMOD
42292 || pPager->eState==PAGER_WRITER_DBMOD
42394 pPager->eState = PAGER_WRITER_DBMOD;
42436 assert( pPager->eState==PAGER_WRITER_DBMOD );
42642 || pPager->eState==PAGER_WRITER_CACHEMOD
42918 pPager->eState = PAGER_READER;
43047 assert( pPager->eState==PAGER_OPEN );
43166 assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER );
43169 if( !pagerUseWal(pPager) && pPager->eState==PAGER_OPEN ){
43254 pPager->eState = PAGER_OPEN;
43268 ** In order to get pager_unlock() to do this, set Pager.eState to
43281 assert( pPager->eState==PAGER_OPEN );
43341 if( pPager->eState==PAGER_OPEN && rc==SQLITE_OK ){
43349 assert( pPager->eState==PAGER_OPEN );
43351 pPager->eState = PAGER_READER;
43429 assert( pPager->eState>=PAGER_READER );
43538 assert( pPager->eState>=PAGER_READER && pPager->eState!=PAGER_ERROR );
43585 assert( pPager->eState==PAGER_WRITER_LOCKED );
43640 assert( pPager->eState==PAGER_WRITER_LOCKED );
43641 pPager->eState = PAGER_WRITER_CACHEMOD;
43668 assert( pPager->eState>=PAGER_READER && pPager->eState<PAGER_ERROR );
43671 if( ALWAYS(pPager->eState==PAGER_READER) ){
43707 ** WAL mode sets Pager.eState to PAGER_WRITER_LOCKED or CACHEMOD
43714 pPager->eState = PAGER_WRITER_LOCKED;
43721 assert( rc==SQLITE_OK || pPager->eState==PAGER_READER );
43722 assert( rc!=SQLITE_OK || pPager->eState==PAGER_WRITER_LOCKED );
43746 assert( pPager->eState==PAGER_WRITER_LOCKED
43747 || pPager->eState==PAGER_WRITER_CACHEMOD
43748 || pPager->eState==PAGER_WRITER_DBMOD
43771 if( pPager->eState==PAGER_WRITER_LOCKED ){
43775 assert( pPager->eState>=PAGER_WRITER_CACHEMOD );
43841 if( pPager->eState!=PAGER_WRITER_DBMOD ){
43889 assert( pPager->eState>=PAGER_WRITER_LOCKED );
43890 assert( pPager->eState!=PAGER_ERROR );
44033 assert( pPager->eState==PAGER_WRITER_CACHEMOD
44034 || pPager->eState==PAGER_WRITER_DBMOD
44135 assert( pPager->eState==PAGER_WRITER_CACHEMOD
44136 || pPager->eState==PAGER_WRITER_DBMOD
44137 || pPager->eState==PAGER_WRITER_LOCKED
44179 assert( pPager->eState==PAGER_WRITER_LOCKED
44180 || pPager->eState==PAGER_WRITER_CACHEMOD
44181 || pPager->eState==PAGER_WRITER_DBMOD
44182 || pPager->eState==PAGER_ERROR
44193 if( pPager->eState<PAGER_WRITER_CACHEMOD ) return SQLITE_OK;
44338 assert( pPager->eState==PAGER_WRITER_DBMOD );
44353 pPager->eState = PAGER_WRITER_FINISHED;
44382 assert( pPager->eState==PAGER_WRITER_LOCKED
44383 || pPager->eState==PAGER_WRITER_FINISHED
44384 || (pagerUseWal(pPager) && pPager->eState==PAGER_WRITER_CACHEMOD)
44399 if( pPager->eState==PAGER_WRITER_LOCKED
44404 pPager->eState = PAGER_READER;
44448 if( pPager->eState==PAGER_ERROR ) return pPager->errCode;
44449 if( pPager->eState<=PAGER_READER ) return SQLITE_OK;
44456 }else if( !isOpen(pPager->jfd) || pPager->eState==PAGER_WRITER_LOCKED ){
44457 int eState = pPager->eState;
44459 if( !MEMDB && eState>PAGER_WRITER_LOCKED ){
44465 pPager->eState = PAGER_ERROR;
44472 assert( pPager->eState==PAGER_READER || rc!=SQLITE_OK );
44525 a[3] = pPager->eState==PAGER_OPEN ? -1 : (int) pPager->dbSize;
44526 a[4] = pPager->eState;
44583 assert( pPager->eState>=PAGER_WRITER_LOCKED );
44799 assert( pPager->eState==PAGER_WRITER_CACHEMOD
44800 || pPager->eState==PAGER_WRITER_DBMOD
45016 assert( pPager->eState!=PAGER_ERROR );
45046 int state = pPager->eState;
45051 if( pPager->eState==PAGER_READER ){
45063 assert( state==pPager->eState );
45086 if( pPager->eState>=PAGER_WRITER_CACHEMOD ) return 0;
45232 assert( pPager->eState==PAGER_OPEN || pbOpen );
45233 assert( pPager->eState==PAGER_READER || !pbOpen );
45246 pPager->eState = PAGER_OPEN;
45309 assert( pPager->eState==PAGER_READER );
48946 u8 eState; /* One of the CURSOR_XXX constants (see below) */
48956 ** Potential values for BtCursor.eState.
49840 p->eState = CURSOR_INVALID;
49927 ** The caller must ensure that the cursor is valid (has eState==CURSOR_VALID)
49933 assert( CURSOR_VALID==pCur->eState );
49968 pCur->eState = CURSOR_REQUIRESEEK;
49986 p->eState==CURSOR_VALID ){
50003 pCur->eState = CURSOR_INVALID;
50050 assert( pCur->eState>=CURSOR_REQUIRESEEK );
50051 if( pCur->eState==CURSOR_FAULT ){
50054 pCur->eState = CURSOR_INVALID;
50059 assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_INVALID );
50065 (p->eState>=CURSOR_REQUIRESEEK ? \
50085 if( pCur->eState!=CURSOR_VALID || pCur->skipNext!=0 ){
52621 if( pCur->wrFlag && pCur->eState!=CURSOR_FAULT ) r++;
52651 p->eState = CURSOR_FAULT;
52866 pCur->eState = CURSOR_INVALID;
53024 return pCur && pCur->eState==CURSOR_VALID;
53042 assert( pCur->eState==CURSOR_INVALID || pCur->eState==CURSOR_VALID );
53043 if( pCur->eState!=CURSOR_VALID ){
53058 ** that the cursor has Cursor.eState==CURSOR_VALID.
53066 assert( pCur->eState==CURSOR_VALID );
53223 assert( pCur->eState==CURSOR_VALID );
53388 assert( pCur->eState==CURSOR_VALID );
53407 if ( pCur->eState==CURSOR_INVALID ){
53415 assert( pCur->eState==CURSOR_VALID );
53453 assert( pCur->eState==CURSOR_VALID );
53498 if( ALWAYS(pCur->eState==CURSOR_VALID) ){
53507 if( ALWAYS(pCur->eState==CURSOR_VALID) ){
53530 assert( pCur->eState==CURSOR_VALID );
53579 assert( pCur->eState==CURSOR_VALID );
53634 if( pCur->eState>=CURSOR_REQUIRESEEK ){
53635 if( pCur->eState==CURSOR_FAULT ){
53649 pCur->eState = CURSOR_INVALID;
53654 pCur->eState = CURSOR_INVALID;
53688 pCur->eState = CURSOR_VALID;
53691 pCur->eState = ((pRoot->nCell>0)?CURSOR_VALID:CURSOR_INVALID);
53709 assert( pCur->eState==CURSOR_VALID );
53734 assert( pCur->eState==CURSOR_VALID );
53759 if( pCur->eState==CURSOR_INVALID ){
53782 if( CURSOR_VALID==pCur->eState && pCur->atLast ){
53798 if( CURSOR_INVALID==pCur->eState ){
53802 assert( pCur->eState==CURSOR_VALID );
53855 if( pCur->eState==CURSOR_VALID && pCur->validNKey
53874 assert( pCur->eState==CURSOR_INVALID || pCur->apPage[pCur->iPage]->nCell>0 );
53875 if( pCur->eState==CURSOR_INVALID ){
54032 return (CURSOR_VALID!=pCur->eState);
54052 if( CURSOR_INVALID==pCur->eState ){
54087 pCur->eState = CURSOR_INVALID;
54126 if( CURSOR_INVALID==pCur->eState ){
54149 pCur->eState = CURSOR_INVALID;
56139 if( pCur->eState==CURSOR_FAULT ){
56180 assert( pCur->eState==CURSOR_VALID || (pCur->eState==CURSOR_INVALID && loc) );
56252 pCur->eState = CURSOR_INVALID;
56281 eState!=CURSOR_VALID)
57557 assert( pCsr->eState!=CURSOR_REQUIRESEEK );
57558 if( pCsr->eState!=CURSOR_VALID ){
114327 int eState; /* Parser state when parsing URI */
114358 ** Within this loop, variable eState may be set to 0, 1 or 2, depending
114365 eState = 0;
114382 && (eState!=0 || c!='?')
114383 && (eState!=1 || (c!='=' && c!='&'))
114384 && (eState!=2 || c!='&')
114391 }else if( eState==1 && (c=='&' || c=='=') ){
114400 eState = 2;
114403 }else if( (eState==0 && c=='?') || (eState==2 && c=='&') ){
114405 eState = 1;
114409 if( eState==1 ) zFile[iOut++] = '\0';
122067 int eState = 0;
122086 switch( eState ){
122090 eState = 1;
122107 eState = 2;
122112 eState = 0;
122114 eState = 3;
122122 default: assert( eState==3 );
122126 eState = 2;