• Home
  • Raw
  • Download

Lines Matching refs:nPage

8863 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);
17171 int nPage; /* Number of pages in pPage[] */ member
25258 || sqlite3GlobalConfig.nPage<=0 ){
46242 unsigned int nPage; /* Total number of pages in apHash */
46480 if( pCache->pFree || (pCache->nPage==0 && pcache1InitBulk(pCache)) ){
46665 pCache->nPage--;
46685 if( pCache->nPage==0 && pCache->pBulk ){
46702 TESTONLY( int nPage = 0; ) /* To assert pCache->nPage is correct */
46714 TESTONLY( nPage = -10; ) /* Disable the pCache->nPage validity check */
46728 pCache->nPage--;
46734 TESTONLY( if( nPage>=0 ) nPage++; )
46740 assert( nPage<0 || pCache->nPage==(unsigned)nPage );
46785 && sqlite3GlobalConfig.nPage!=0
46788 pcache1.nInitPage = sqlite3GlobalConfig.nPage;
46907 n = pCache->nPage;
46931 assert( pCache->nPage >= pCache->nRecyclable );
46932 nPinned = pCache->nPage - pCache->nRecyclable;
46943 if( pCache->nPage>=pCache->nHash ) pcache1ResizeHash(pCache);
46949 && ((pCache->nPage+1>=pCache->nMax) || pcache1UnderMemoryPressure(pCache))
46974 pCache->nPage++;
47219 if( pCache->nPage ) pcache1TruncateUnsafe(pCache, 0);
49922 static int pager_truncate(Pager *pPager, Pgno nPage);
50640 static int pager_truncate(Pager *pPager, Pgno nPage){
50653 newSize = szPage*(i64)nPage;
50665 pPager->dbFileSize = nPage;
51256 Pgno nPage; /* Value to return via *pnPage */
51268 nPage = sqlite3WalDbsize(pPager->pWal);
51275 if( nPage==0 && ALWAYS(isOpen(pPager->fd)) ){
51281 nPage = (Pgno)((n+pPager->pageSize-1) / pPager->pageSize);
51288 if( nPage>pPager->mxPgno ){
51289 pPager->mxPgno = (Pgno)nPage;
51292 *pnPage = nPage;
51327 Pgno nPage; /* Size of the database file */
51329 rc = pagerPagecount(pPager, &nPage);
51331 if( nPage==0 ){
51968 SQLITE_PRIVATE void sqlite3PagerTruncateImage(Pager *pPager, Pgno nPage){
51969 assert( pPager->dbSize>=nPage );
51971 pPager->dbSize = nPage;
53039 Pgno nPage; /* Number of pages in database file */
53042 rc = pagerPagecount(pPager, &nPage);
53052 if( nPage==0 && !jrnlOpen ){
54000 int nPage = 0; /* Number of pages starting at pg1 to journal */
54022 nPage = (pPg->pgno - pg1)+1;
54024 nPage = nPageCount+1-pg1;
54026 nPage = nPagePerSector;
54028 assert(nPage>0);
54030 assert((pg1+nPage)>pPg->pgno);
54032 for(ii=0; ii<nPage && rc==SQLITE_OK; ii++){
54062 for(ii=0; ii<nPage; ii++){
55943 u32 nPage; /* Size of database in pages */
56843 pWal->hdr.nPage = nTruncate;
56879 if( pWal->hdr.nPage ){
57412 mxPage = pWal->hdr.nPage;
57485 i64 szDb = pWal->hdr.nPage*(i64)szPage;
58562 return pWal->hdr.nPage;
59116 pWal->hdr.nPage = nTruncate;
59850 u32 nPage; /* Number of pages in the database */
60092 Pgno nPage; /* Number of pages in the database */
61012 assert( pgno<=pBt->nPage );
61013 pBt->pHasContent = sqlite3BitvecCreate(pBt->nPage);
62486 return pBt->nPage;
62490 assert( ((p->pBt->nPage)&0x80000000)==0 );
63405 int nPage; /* Number of pages in the database */
63419 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
63421 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
63422 nPage = nPageFile;
63424 if( nPage>0 ){
63522 if( (pBt->db->flags & SQLITE_WriteSchema)==0 && nPage>nPageFile ){
63564 pBt->nPage = nPage;
63628 if( pBt->nPage>0 ){
63656 pBt->nPage = 1;
63669 p->pBt->nPage = 0;
63767 if( pBt->nPage==0 ) pBt->btsFlags |= BTS_INITIALLY_EMPTY;
63826 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
63829 put4byte(&pPage1->aData[28], pBt->nPage);
64142 pBt->nPage = iLastPg;
64201 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
64258 pBt->nPage = nFin;
64313 sqlite3PagerTruncateImage(pBt->pPager, pBt->nPage);
64530 int nPage = get4byte(28+(u8*)pPage1->aData);
64531 testcase( nPage==0 );
64532 if( nPage==0 ) sqlite3PagerPagecount(pBt->pPager, &nPage);
64533 testcase( pBt->nPage!=nPage );
64534 pBt->nPage = nPage;
64611 pBt->nPage = 0;
64614 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
64619 assert( pBt->nPage>0 );
66418 pBt->nPage++;
66419 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ) pBt->nPage++;
66422 if( pBt->autoVacuum && PTRMAP_ISPAGE(pBt, pBt->nPage) ){
66428 TRACE(("ALLOCATE: %d from end of file (pointer-map page)\n", pBt->nPage));
66429 assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) );
66430 rc = btreeGetUnusedPage(pBt, pBt->nPage, &pPg, bNoContent);
66436 pBt->nPage++;
66437 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ){ pBt->nPage++; }
66440 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
66441 *pPgno = pBt->nPage;
67486 static int ptrmapCheckPages(MemPage **apPage, int nPage){
67488 for(i=0; i<nPage; i++){
68084 sqlite3PagerRekey(apNew[iBest]->pDbPage, pBt->nPage+iBest+1, 0);
69534 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
69542 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
69557 if( iPage>pCheck->nPage ){
69868 int nPage; /* Number of pages on the overflow chain */
69871 nPage = (info.nPayload - info.nLocal + usableSize - 5)/(usableSize - 4);
69878 checkList(pCheck, 0, pgnoOvfl, nPage);
70025 sCheck.nPage = btreePagecount(sCheck.pBt);
70036 if( sCheck.nPage==0 ){
70040 sCheck.aPgRef = sqlite3MallocZero((sCheck.nPage / 8)+ 1);
70052 if( i<=sCheck.nPage ) setPageReferenced(&sCheck, i);
70079 for(i=1; i<=sCheck.nPage && sCheck.mxErr; i++){
70751 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage){
70824 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){
143625 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
143833 sqlite3GlobalConfig.nPage = va_arg(ap, int);
178130 int nPage;
178132 sqlite3PagerPagecount(pPager, &nPage);
178133 if( nPage==0 ){