Lines Matching refs:pgnoRoot

23224   Pgno pgnoRoot;          /* Root page of the open btree cursor */  member
70055 Pgno pgnoRoot; /* The root page of this tree */
70855 if( p->pgnoRoot==iRoot
71136 Pgno pgnoRoot, /* The table that might be changing */
71147 if( p->pgnoRoot==pgnoRoot && (isClearTable || p->info.nKey==iRow) ){
71354 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
71372 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
75227 pCur->pgnoRoot = iTable;
75236 if( pX->pgnoRoot==iTable ){
76033 assert( pCur->pgnoRoot>0 || pCur->iPage<0 );
76044 }else if( pCur->pgnoRoot==0 ){
76056 rc = getAndInitPage(pCur->pBt, pCur->pgnoRoot, &pCur->pPage,
76066 assert( pRoot->pgno==pCur->pgnoRoot || CORRUPT_DB );
76169 assert( pCur->pgnoRoot==0 || (pCur->pPage!=0 && pCur->pPage->nCell==0) );
76209 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
76304 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
76547 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
79867 rc = saveAllCursors(p->pBt, pCur->pgnoRoot, pCur);
79875 return SQLITE_CORRUPT_PGNO(pCur->pgnoRoot);
79893 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
79907 invalidateIncrblobCursors(p, pCur->pgnoRoot, pX->nKey, 0);
80006 pCur->pgnoRoot, pX->nKey, pX->nData, pPage->pgno,
80284 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
80285 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
80293 return SQLITE_CORRUPT_PGNO(pCur->pgnoRoot);
80360 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
80367 invalidateIncrblobCursors(p, pCur->pgnoRoot, pCur->info.nKey, 0);
80485 Pgno pgnoRoot;
80494 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
80514 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
80515 if( pgnoRoot>btreePagecount(pBt) ){
80516 return SQLITE_CORRUPT_PGNO(pgnoRoot);
80518 pgnoRoot++;
80523 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
80524 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
80525 pgnoRoot++;
80527 assert( pgnoRoot>=3 );
80533 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, BTALLOC_EXACT);
80538 if( pgnoMove!=pgnoRoot ){
80558 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
80562 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
80564 rc = SQLITE_CORRUPT_PGNO(pgnoRoot);
80579 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
80593 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
80604 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
80611 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
80623 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
80624 *piTable = pgnoRoot;
80733 return sqlite3BtreeClearTable(pCur->pBtree, pCur->pgnoRoot, 0);
81894 VVA_ONLY(rc =) saveAllCursors(pCsr->pBt, pCsr->pgnoRoot, pCsr);
81909 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
81910 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );
97403 if( pCur && pCur->pgnoRoot==(u32)pOp->p2 ){
97474 pCur->pgnoRoot = p2;
97519 pCx->pgnoRoot = pOrig->pgnoRoot;
97524 rc = sqlite3BtreeCursor(pCx->ub.pBtx, pCx->pgnoRoot, BTREE_WRCSR,
97597 rc = sqlite3BtreeClearTable(pCx->ub.pBtx, pCx->pgnoRoot, 0);
97615 rc = sqlite3BtreeCreateTable(pCx->ub.pBtx, &pCx->pgnoRoot,
97618 assert( pCx->pgnoRoot==SCHEMA_ROOT+1 );
97621 rc = sqlite3BtreeCursor(pCx->ub.pBtx, pCx->pgnoRoot, BTREE_WRCSR,
97626 pCx->pgnoRoot = SCHEMA_ROOT;