Lines Matching defs:pgnoRoot

48937   Pgno pgnoRoot;            /* The root page of this tree */
49569 if( p->pgnoRoot==iRoot
49824 ** cursors open on any row within the table with root-page pgnoRoot.
49985 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) &&
52855 pCur->pgnoRoot = (Pgno)iTable;
52923 if( p->pgnoRoot==pCur->pgnoRoot ) p->cachedRowid = iRowid;
53648 }else if( pCur->pgnoRoot==0 ){
53652 rc = getAndInitPage(pBt, pCur->pgnoRoot, &pCur->apPage[0]);
53676 assert( pRoot->pgno==pCur->pgnoRoot );
53760 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
53799 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
53872 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage] );
53873 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->isInit );
53877 assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 );
56147 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
56174 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
56187 pCur->pgnoRoot, nKey, nData, pPage->pgno,
56277 assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) );
56278 assert( !hasReadConflicts(p, pCur->pgnoRoot) );
56315 rc = saveAllCursors(pBt, pCur->pgnoRoot, pCur);
56390 Pgno pgnoRoot;
56399 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
56419 sqlite3BtreeGetMeta(p, BTREE_LARGEST_ROOT_PAGE, &pgnoRoot);
56420 pgnoRoot++;
56425 while( pgnoRoot==PTRMAP_PAGENO(pBt, pgnoRoot) ||
56426 pgnoRoot==PENDING_BYTE_PAGE(pBt) ){
56427 pgnoRoot++;
56429 assert( pgnoRoot>=3 );
56431 /* Allocate a page. The page that currently resides at pgnoRoot will
56433 ** to reside at pgnoRoot).
56435 rc = allocateBtreePage(pBt, &pPageMove, &pgnoMove, pgnoRoot, 1);
56440 if( pgnoMove!=pgnoRoot ){
56441 /* pgnoRoot is the page that will be used for the root-page of
56452 /* Move the page currently at pgnoRoot to pgnoMove. */
56453 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
56457 rc = ptrmapGet(pBt, pgnoRoot, &eType, &iPtrPage);
56470 /* Obtain the page at pgnoRoot */
56474 rc = btreeGetPage(pBt, pgnoRoot, &pRoot, 0);
56488 ptrmapPut(pBt, pgnoRoot, PTRMAP_ROOTPAGE, 0, &rc);
56499 rc = sqlite3BtreeUpdateMeta(p, 4, pgnoRoot);
56506 rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
56518 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
56519 *piTable = (int)pgnoRoot;
56819 if( pCur->pgnoRoot==0 ){
57574 assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
57575 assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );