Lines Matching refs:pgnoRoot
20768 Pgno pgnoRoot; /* Root page of the open btree cursor */ member
63843 Pgno pgnoRoot; /* The root page of this tree */
64584 if( p->pgnoRoot==iRoot
64858 Pgno pgnoRoot, /* The table that might be changing */
64869 if( p->pgnoRoot==pgnoRoot && (isClearTable || p->info.nKey==iRow) ){
65076 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
65094 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
68742 pCur->pgnoRoot = (Pgno)iTable;
68752 if( pX->pgnoRoot==(Pgno)iTable ){
69517 assert( pCur->pgnoRoot>0 || pCur->iPage<0 );
69528 }else if( pCur->pgnoRoot==0 ){
69540 rc = getAndInitPage(pCur->pBtree->pBt, pCur->pgnoRoot, &pCur->pPage,
69550 assert( pRoot->pgno==pCur->pgnoRoot );
69654 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
69698 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
69800 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
72979 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
73000 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
73008 invalidateIncrblobCursors(p, pCur->pgnoRoot, pX->nKey, 0);
73104 pCur->pgnoRoot, pX->nKey, pX->nData, pPage->pgno,
73249 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
73250 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
73303 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
73310 invalidateIncrblobCursors(p, pCur->pgnoRoot, pCur->info.nKey, 0);
73420 Pgno pgnoRoot;
73429 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
73449 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
73450 pgnoRoot++;
73455 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
73456 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
73457 pgnoRoot++;
73459 assert( pgnoRoot>=3 || CORRUPT_DB );
73460 testcase( pgnoRoot<3 );
73466 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, BTALLOC_EXACT);
73471 if( pgnoMove!=pgnoRoot ){
73491 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
73495 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
73512 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
73526 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
73537 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
73544 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
73556 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
73557 *piTable = (int)pgnoRoot;
73664 return sqlite3BtreeClearTable(pCur->pBtree, pCur->pgnoRoot, 0);
74755 VVA_ONLY(rc =) saveAllCursors(pCsr->pBt, pCsr->pgnoRoot, pCsr);
74770 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
74771 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );
88875 if( pCur && pCur->pgnoRoot==(u32)pOp->p2 ){
88943 pCur->pgnoRoot = p2;
88988 pCx->pgnoRoot = pOrig->pgnoRoot;
88990 rc = sqlite3BtreeCursor(pOrig->pBtx, pCx->pgnoRoot, BTREE_WRCSR,
89049 rc = sqlite3BtreeClearTable(pCx->pBtx, pCx->pgnoRoot, 0);
89068 rc = sqlite3BtreeCreateTable(pCx->pBtx, (int*)&pCx->pgnoRoot,
89071 assert( pCx->pgnoRoot==MASTER_ROOT+1 );
89074 rc = sqlite3BtreeCursor(pCx->pBtx, pCx->pgnoRoot, BTREE_WRCSR,
89079 pCx->pgnoRoot = MASTER_ROOT;