Lines Matching refs:pgnoRoot
18747 Pgno pgnoRoot; /* Root page of the open btree cursor */
59917 Pgno pgnoRoot; /* The root page of this tree */
60661 if( p->pgnoRoot==iRoot
60927 ** cursors open on any row within the table with root-page pgnoRoot.
60935 Pgno pgnoRoot, /* The table that might be changing */
60946 if( p->pgnoRoot==pgnoRoot && (isClearTable || p->info.nKey==iRow) ){
61144 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
61162 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
64692 pCur->pgnoRoot = (Pgno)iTable;
64702 if( pX->pgnoRoot==(Pgno)iTable ){
65420 assert( pCur->pgnoRoot>0 || pCur->iPage<0 );
65431 }else if( pCur->pgnoRoot==0 ){
65443 rc = getAndInitPage(pCur->pBtree->pBt, pCur->pgnoRoot, &pCur->pPage,
65453 assert( pRoot->pgno==pCur->pgnoRoot );
65557 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
65600 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
65702 assert( pCur->pgnoRoot==0 || pCur->pPage->nCell==0 );
68599 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
68620 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
68628 invalidateIncrblobCursors(p, pCur->pgnoRoot, pX->nKey, 0);
68668 pCur->pgnoRoot, pX->nKey, pX->nData, pPage->pgno,
68806 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
68807 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
68855 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
68862 invalidateIncrblobCursors(p, pCur->pgnoRoot, pCur->info.nKey, 0);
68968 Pgno pgnoRoot;
68977 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
68997 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
68998 pgnoRoot++;
69003 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
69004 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
69005 pgnoRoot++;
69007 assert( pgnoRoot>=3 || CORRUPT_DB );
69008 testcase( pgnoRoot<3 );
69010 /* Allocate a page. The page that currently resides at pgnoRoot will
69012 ** to reside at pgnoRoot).
69014 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, BTALLOC_EXACT);
69019 if( pgnoMove!=pgnoRoot ){
69020 /* pgnoRoot is the page that will be used for the root-page of
69031 ** corresponding to page pgnoRoot. */
69038 /* Move the page currently at pgnoRoot to pgnoMove. */
69039 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
69043 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
69056 /* Obtain the page at pgnoRoot */
69060 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
69074 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
69085 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
69092 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
69104 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
69105 *piTable = (int)pgnoRoot;
69212 return sqlite3BtreeClearTable(pCur->pBtree, pCur->pgnoRoot, 0);
70280 VVA_ONLY(rc =) saveAllCursors(pCsr->pBt, pCsr->pgnoRoot, pCsr);
70295 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
70296 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );
83393 if( pCur && pCur->pgnoRoot==(u32)pOp->p2 ){
83460 pCur->pgnoRoot = p2;