Lines Matching refs:pgnoRoot

23704   Pgno pgnoRoot;          /* Root page of the open btree cursor */  member
71065 Pgno pgnoRoot; /* The root page of this tree */ member
71865 if( p->pgnoRoot==iRoot
72146 Pgno pgnoRoot, /* The table that might be changing */
72157 if( p->pgnoRoot==pgnoRoot && (isClearTable || p->info.nKey==iRow) ){
72364 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
72382 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
76250 pCur->pgnoRoot = iTable;
76259 if( pX->pgnoRoot==iTable ){
77075 assert( pCur->pgnoRoot>0 || pCur->iPage<0 );
77086 }else if( pCur->pgnoRoot==0 ){
77098 rc = getAndInitPage(pCur->pBt, pCur->pgnoRoot, &pCur->pPage,
77108 assert( pRoot->pgno==pCur->pgnoRoot || CORRUPT_DB );
77211 assert( pCur->pgnoRoot==0 || (pCur->pPage!=0 && pCur->pPage->nCell==0) );
77251 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
77346 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
77589 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
80920 rc = saveAllCursors(p->pBt, pCur->pgnoRoot, pCur);
80928 return SQLITE_CORRUPT_PGNO(pCur->pgnoRoot);
80946 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
80960 invalidateIncrblobCursors(p, pCur->pgnoRoot, pX->nKey, 0);
81059 pCur->pgnoRoot, pX->nKey, pX->nData, pPage->pgno,
81337 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
81338 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
81346 return SQLITE_CORRUPT_PGNO(pCur->pgnoRoot);
81413 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
81420 invalidateIncrblobCursors(p, pCur->pgnoRoot, pCur->info.nKey, 0);
81538 Pgno pgnoRoot; local
81547 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
81567 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
81568 if( pgnoRoot>btreePagecount(pBt) ){
81569 return SQLITE_CORRUPT_PGNO(pgnoRoot);
81571 pgnoRoot++;
81576 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
81577 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
81578 pgnoRoot++;
81580 assert( pgnoRoot>=3 );
81586 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, BTALLOC_EXACT);
81591 if( pgnoMove!=pgnoRoot ){
81611 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
81615 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
81617 rc = SQLITE_CORRUPT_PGNO(pgnoRoot);
81632 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
81646 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
81657 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
81664 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
81676 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
81677 *piTable = pgnoRoot;
81786 return sqlite3BtreeClearTable(pCur->pBtree, pCur->pgnoRoot, 0);
82948 VVA_ONLY(rc =) saveAllCursors(pCsr->pBt, pCsr->pgnoRoot, pCsr);
82963 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
82964 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );
98661 if( pCur && pCur->pgnoRoot==(u32)pOp->p2 ){
98732 pCur->pgnoRoot = p2;
98777 pCx->pgnoRoot = pOrig->pgnoRoot;
98782 rc = sqlite3BtreeCursor(pCx->ub.pBtx, pCx->pgnoRoot, BTREE_WRCSR,
98855 rc = sqlite3BtreeClearTable(pCx->ub.pBtx, pCx->pgnoRoot, 0);
98873 rc = sqlite3BtreeCreateTable(pCx->ub.pBtx, &pCx->pgnoRoot,
98876 assert( pCx->pgnoRoot==SCHEMA_ROOT+1 );
98879 rc = sqlite3BtreeCursor(pCx->ub.pBtx, pCx->pgnoRoot, BTREE_WRCSR,
98884 pCx->pgnoRoot = SCHEMA_ROOT;