Lines Matching refs:pgnoRoot

47831   Pgno pgnoRoot;            /* The root page of this tree */
48464 if( p->pgnoRoot==iRoot
48882 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) &&
51740 pCur->pgnoRoot = (Pgno)iTable;
51808 if( p->pgnoRoot==pCur->pgnoRoot ) p->cachedRowid = iRowid;
52489 }else if( pCur->pgnoRoot==0 ){
52493 rc = getAndInitPage(pBt, pCur->pgnoRoot, &pCur->apPage[0]);
52517 assert( pRoot->pgno==pCur->pgnoRoot );
52601 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
52640 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
52713 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage] );
52714 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->isInit );
52718 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
54962 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
54989 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
55002 pCur->pgnoRoot, nKey, nData, pPage->pgno,
55092 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
55093 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
55130 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
55205 Pgno pgnoRoot;
55214 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
55234 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
55235 pgnoRoot++;
55240 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
55241 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
55242 pgnoRoot++;
55244 assert( pgnoRoot>=3 );
55250 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, 1);
55255 if( pgnoMove!=pgnoRoot ){
55268 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
55272 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
55289 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
55303 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
55314 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
55321 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
55333 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
55334 *piTable = (int)pgnoRoot;
55632 if( pCur->pgnoRoot==0 ){
56386 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
56387 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );