Lines Matching defs:nPage
7057 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);
11354 int nPage; /* Number of pages in pPage[] */
12345 0, /* nPage */
18773 || sqlite3GlobalConfig.nPage<1 ){
18776 sqlite3GlobalConfig.nPage = 0;
36793 int nPage = 0;
36795 nPage = sqlite3GlobalConfig.pcache2.xPagecount(pCache->pCache);
36797 return nPage;
36928 unsigned int nPage; /* Total number of pages in apHash */
37314 pCache->nPage--;
37343 TESTONLY( unsigned int nPage = 0; ) /* To assert pCache->nPage is correct */
37351 pCache->nPage--;
37357 TESTONLY( nPage++; )
37361 assert( pCache->nPage==nPage );
37495 n = pCache->nPage;
37594 assert( pCache->nPage >= pCache->nRecyclable );
37595 nPinned = pCache->nPage - pCache->nRecyclable;
37606 if( pCache->nPage>=pCache->nHash && pcache1ResizeHash(pCache) ){
37612 (pCache->nPage+1>=pCache->nMax)
37648 pCache->nPage++;
40884 ** of the file is changed to nPage pages (nPage*pPager->pageSize bytes).
40885 ** If the file on disk is currently larger than nPage pages, then use the VFS
40889 ** nPage pages. Some operating system implementations can get confused if
40897 static int pager_truncate(Pager *pPager, Pgno nPage){
40910 newSize = szPage*(i64)nPage;
40922 pPager->dbFileSize = nPage;
41488 Pgno nPage; /* Value to return via *pnPage */
41498 nPage = sqlite3WalDbsize(pPager->pWal);
41506 if( nPage==0 ){
41515 nPage = (Pgno)((n+pPager->pageSize-1) / pPager->pageSize);
41522 if( nPage>pPager->mxPgno ){
41523 pPager->mxPgno = (Pgno)nPage;
41526 *pnPage = nPage;
41556 Pgno nPage; /* Size of the database file */
41558 rc = pagerPagecount(pPager, &nPage);
41560 if( nPage==0 ){
42133 ** Truncate the in-memory database file image to nPage pages. This
42138 SQLITE_PRIVATE void sqlite3PagerTruncateImage(Pager *pPager, Pgno nPage){
42139 assert( pPager->dbSize>=nPage );
42141 pPager->dbSize = nPage;
42957 /* pPager->nPage = 0; */
43070 Pgno nPage; /* Number of pages in database file */
43078 rc = pagerPagecount(pPager, &nPage);
43080 if( nPage==0 ){
43306 Pgno nPage = 0;
43309 rc = pagerPagecount(pPager, &nPage);
43312 if( nPage>0 ){
43896 int nPage = 0; /* Number of pages starting at pg1 to journal */
43916 nPage = (pPg->pgno - pg1)+1;
43918 nPage = nPageCount+1-pg1;
43920 nPage = nPagePerSector;
43922 assert(nPage>0);
43924 assert((pg1+nPage)>pPg->pgno);
43926 for(ii=0; ii<nPage && rc==SQLITE_OK; ii++){
43948 /* If the PGHDR_NEED_SYNC flag is set for any of the nPage pages
43950 ** writing to any of these nPage pages may damage the others, the
43956 for(ii=0; ii<nPage; ii++){
45641 u32 nPage; /* Size of database in pages */
46506 pWal->hdr.nPage = nTruncate;
46540 if( pWal->hdr.nPage ){
46542 pWal->hdr.nPage, pWal->zWalName
47027 mxPage = pWal->hdr.nPage;
47085 i64 szDb = pWal->hdr.nPage*(i64)szPage;
47746 return pWal->hdr.nPage;
48211 pWal->hdr.nPage = nTruncate;
48862 u32 nPage; /* Number of pages in the database */
49077 Pgno nPage; /* Number of pages in the database */
49890 assert( pgno<=pBt->nPage );
49891 pBt->pHasContent = sqlite3BitvecCreate(pBt->nPage);
50949 return pBt->nPage;
50953 assert( ((p->pBt->nPage)&0x8000000)==0 );
51666 int nPage; /* Number of pages in the database */
51680 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
51682 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
51683 nPage = nPageFile;
51685 if( nPage>0 ){
51762 if( (pBt->db->flags & SQLITE_RecoveryMode)==0 && nPage>nPageFile ){
51801 pBt->nPage = nPage;
51841 if( pBt->nPage>0 ){
51869 pBt->nPage = 1;
51963 if( pBt->nPage==0 ) pBt->btsFlags |= BTS_INITIALLY_EMPTY;
52022 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
52025 put4byte(&pPage1->aData[28], pBt->nPage);
52353 pBt->nPage = iLastPg;
52379 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
52441 pBt->nPage = nFin;
52699 int nPage = get4byte(28+(u8*)pPage1->aData);
52700 testcase( nPage==0 );
52701 if( nPage==0 ) sqlite3PagerPagecount(pBt->pPager, &nPage);
52702 testcase( pBt->nPage!=nPage );
52703 pBt->nPage = nPage;
52774 pBt->nPage = 0;
52777 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
52782 assert( pBt->nPage>0 );
54407 pBt->nPage++;
54408 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ) pBt->nPage++;
54411 if( pBt->autoVacuum && PTRMAP_ISPAGE(pBt, pBt->nPage) ){
54417 TRACE(("ALLOCATE: %d from end of file (pointer-map page)\n", pBt->nPage));
54418 assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) );
54419 rc = btreeGetPage(pBt, pBt->nPage, &pPg, 1);
54425 pBt->nPage++;
54426 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ){ pBt->nPage++; }
54429 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
54430 *pPgno = pBt->nPage;
55149 static int ptrmapCheckPages(MemPage **apPage, int nPage){
55151 for(i=0; i<nPage; i++){
56929 if( iPage>pCheck->nPage ){
57136 int nPage = (sz - info.nLocal + usableSize - 5)/(usableSize - 4);
57143 checkList(pCheck, 0, pgnoOvfl, nPage, zContext);
57304 sCheck.nPage = btreePagecount(sCheck.pBt);
57309 if( sCheck.nPage==0 ){
57313 sCheck.anRef = sqlite3Malloc( (sCheck.nPage+1)*sizeof(sCheck.anRef[0]) );
57319 for(i=0; i<=sCheck.nPage; i++){ sCheck.anRef[i] = 0; }
57321 if( i<=sCheck.nPage ){
57346 for(i=1; i<=sCheck.nPage && sCheck.mxErr; i++){
57958 ** Copy nPage pages from the source b-tree to the destination.
57960 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage){
58020 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){
112635 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
112803 sqlite3GlobalConfig.nPage = va_arg(ap, int);