Lines Matching refs:pgno
1492 Pgno pgno; in moveToLeftmost() local
1495 while( (pgno = pCur->pPage->apCell[pCur->idx]->h.leftChild)!=0 ){ in moveToLeftmost()
1496 rc = moveToChild(pCur, pgno); in moveToLeftmost()
1510 Pgno pgno; in moveToRightmost() local
1513 while( (pgno = pCur->pPage->u.hdr.rightChild)!=0 ){ in moveToRightmost()
1515 rc = moveToChild(pCur, pgno); in moveToRightmost()
1695 Pgno pgno; in fileBtreePrevious() local
1715 if( (pgno = pPage->apCell[pCur->idx]->h.leftChild)!=0 ){ in fileBtreePrevious()
1716 rc = moveToChild(pCur, pgno); in fileBtreePrevious()
1816 static int freePage(Btree *pBt, void *pPage, Pgno pgno){ in freePage() argument
1823 if( pgno==0 ){ in freePage()
1825 pgno = sqlitepager_pagenumber(pOvfl); in freePage()
1827 assert( pgno>2 ); in freePage()
1828 assert( sqlitepager_pagenumber(pOvfl)==pgno ); in freePage()
1850 pInfo->aFree[n] = SWAB32(pBt, pgno); in freePage()
1853 sqlitepager_dont_write(pBt->pPager, pgno); in freePage()
1861 assert( pgno>0 ); in freePage()
1862 rc = sqlitepager_get(pBt->pPager, pgno, (void**)&pOvfl); in freePage()
1872 pPage1->freeList = SWAB32(pBt, pgno); in freePage()
1983 static void reparentPage(Pager *pPager, Pgno pgno, MemPage *pNewParent,int idx){ in reparentPage() argument
1986 if( pgno==0 ) return; in reparentPage()
1988 pThis = sqlitepager_lookup(pPager, pgno); in reparentPage()
2299 Pgno pgno, swabPgno; in balance() local
2300 pgno = sqlitepager_pagenumber(pPage); in balance()
2301 swabPgno = SWAB32(pBt, pgno); in balance()
2800 static int clearDatabasePage(Btree *pBt, Pgno pgno, int freePageFlag){ in clearDatabasePage() argument
2806 rc = sqlitepager_get(pBt->pPager, pgno, (void**)&pPage); in clearDatabasePage()
2810 rc = initPage(pBt, pPage, pgno, 0); in clearDatabasePage()
2828 rc = freePage(pBt, pPage, pgno); in clearDatabasePage()
2952 rc = sqlitepager_get(pBtFrom->pPager, pgno, (void**)&pPageFrom);
3034 static int fileBtreePageDump(Btree *pBt, int pgno, int recursive){ in fileBtreePageDump() argument
3042 rc = sqlitepager_get(pBt->pPager, (Pgno)pgno, (void**)&pPage); in fileBtreePageDump()
3046 if( recursive ) printf("PAGE %d:\n", pgno); in fileBtreePageDump()
3293 int i, rc, depth, d2, pgno; in checkTreePage() local
3357 pgno = SWAB32(pBt, pCell->h.leftChild); in checkTreePage()
3358 d2 = checkTreePage(pCheck, pgno, pPage, zContext, zKey1,nKey1,zKey2,nKey2); in checkTreePage()
3367 pgno = SWAB32(pBt, pPage->u.hdr.rightChild); in checkTreePage()
3369 checkTreePage(pCheck, pgno, pPage, zContext, zKey1,nKey1,zUpperBound,nUpper); in checkTreePage()