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;
36804 int nPage = 0;
36806 nPage = sqlite3GlobalConfig.pcache2.xPagecount(pCache->pCache);
36808 return nPage;
36939 unsigned int nPage; /* Total number of pages in apHash */
37325 pCache->nPage--;
37354 TESTONLY( unsigned int nPage = 0; ) /* To assert pCache->nPage is correct */
37362 pCache->nPage--;
37368 TESTONLY( nPage++; )
37372 assert( pCache->nPage==nPage );
37506 n = pCache->nPage;
37605 assert( pCache->nPage >= pCache->nRecyclable );
37606 nPinned = pCache->nPage - pCache->nRecyclable;
37617 if( pCache->nPage>=pCache->nHash && pcache1ResizeHash(pCache) ){
37623 (pCache->nPage+1>=pCache->nMax)
37659 pCache->nPage++;
40895 ** of the file is changed to nPage pages (nPage*pPager->pageSize bytes).
40896 ** If the file on disk is currently larger than nPage pages, then use the VFS
40900 ** nPage pages. Some operating system implementations can get confused if
40908 static int pager_truncate(Pager *pPager, Pgno nPage){
40921 newSize = szPage*(i64)nPage;
40933 pPager->dbFileSize = nPage;
41499 Pgno nPage; /* Value to return via *pnPage */
41509 nPage = sqlite3WalDbsize(pPager->pWal);
41517 if( nPage==0 ){
41526 nPage = (Pgno)((n+pPager->pageSize-1) / pPager->pageSize);
41533 if( nPage>pPager->mxPgno ){
41534 pPager->mxPgno = (Pgno)nPage;
41537 *pnPage = nPage;
41567 Pgno nPage; /* Size of the database file */
41569 rc = pagerPagecount(pPager, &nPage);
41571 if( nPage==0 ){
42144 ** Truncate the in-memory database file image to nPage pages. This
42149 SQLITE_PRIVATE void sqlite3PagerTruncateImage(Pager *pPager, Pgno nPage){
42150 assert( pPager->dbSize>=nPage );
42152 pPager->dbSize = nPage;
42968 /* pPager->nPage = 0; */
43081 Pgno nPage; /* Number of pages in database file */
43089 rc = pagerPagecount(pPager, &nPage);
43091 if( nPage==0 ){
43317 Pgno nPage = 0;
43320 rc = pagerPagecount(pPager, &nPage);
43323 if( nPage>0 ){
43907 int nPage = 0; /* Number of pages starting at pg1 to journal */
43927 nPage = (pPg->pgno - pg1)+1;
43929 nPage = nPageCount+1-pg1;
43931 nPage = nPagePerSector;
43933 assert(nPage>0);
43935 assert((pg1+nPage)>pPg->pgno);
43937 for(ii=0; ii<nPage && rc==SQLITE_OK; ii++){
43959 /* If the PGHDR_NEED_SYNC flag is set for any of the nPage pages
43961 ** writing to any of these nPage pages may damage the others, the
43967 for(ii=0; ii<nPage; ii++){
45652 u32 nPage; /* Size of database in pages */
46517 pWal->hdr.nPage = nTruncate;
46551 if( pWal->hdr.nPage ){
46553 pWal->hdr.nPage, pWal->zWalName
47038 mxPage = pWal->hdr.nPage;
47096 i64 szDb = pWal->hdr.nPage*(i64)szPage;
47757 return pWal->hdr.nPage;
48222 pWal->hdr.nPage = nTruncate;
48873 u32 nPage; /* Number of pages in the database */
49088 Pgno nPage; /* Number of pages in the database */
49901 assert( pgno<=pBt->nPage );
49902 pBt->pHasContent = sqlite3BitvecCreate(pBt->nPage);
50960 return pBt->nPage;
50964 assert( ((p->pBt->nPage)&0x8000000)==0 );
51677 int nPage; /* Number of pages in the database */
51691 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
51693 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
51694 nPage = nPageFile;
51696 if( nPage>0 ){
51773 if( (pBt->db->flags & SQLITE_RecoveryMode)==0 && nPage>nPageFile ){
51812 pBt->nPage = nPage;
51852 if( pBt->nPage>0 ){
51880 pBt->nPage = 1;
51974 if( pBt->nPage==0 ) pBt->btsFlags |= BTS_INITIALLY_EMPTY;
52033 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
52036 put4byte(&pPage1->aData[28], pBt->nPage);
52364 pBt->nPage = iLastPg;
52390 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
52452 pBt->nPage = nFin;
52710 int nPage = get4byte(28+(u8*)pPage1->aData);
52711 testcase( nPage==0 );
52712 if( nPage==0 ) sqlite3PagerPagecount(pBt->pPager, &nPage);
52713 testcase( pBt->nPage!=nPage );
52714 pBt->nPage = nPage;
52785 pBt->nPage = 0;
52788 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
52793 assert( pBt->nPage>0 );
54418 pBt->nPage++;
54419 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ) pBt->nPage++;
54422 if( pBt->autoVacuum && PTRMAP_ISPAGE(pBt, pBt->nPage) ){
54428 TRACE(("ALLOCATE: %d from end of file (pointer-map page)\n", pBt->nPage));
54429 assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) );
54430 rc = btreeGetPage(pBt, pBt->nPage, &pPg, 1);
54436 pBt->nPage++;
54437 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ){ pBt->nPage++; }
54440 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
54441 *pPgno = pBt->nPage;
55160 static int ptrmapCheckPages(MemPage **apPage, int nPage){
55162 for(i=0; i<nPage; i++){
56940 if( iPage>pCheck->nPage ){
57147 int nPage = (sz - info.nLocal + usableSize - 5)/(usableSize - 4);
57154 checkList(pCheck, 0, pgnoOvfl, nPage, zContext);
57315 sCheck.nPage = btreePagecount(sCheck.pBt);
57320 if( sCheck.nPage==0 ){
57324 sCheck.anRef = sqlite3Malloc( (sCheck.nPage+1)*sizeof(sCheck.anRef[0]) );
57330 for(i=0; i<=sCheck.nPage; i++){ sCheck.anRef[i] = 0; }
57332 if( i<=sCheck.nPage ){
57357 for(i=1; i<=sCheck.nPage && sCheck.mxErr; i++){
57969 ** Copy nPage pages from the source b-tree to the destination.
57971 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage){
58031 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){
112646 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
112814 sqlite3GlobalConfig.nPage = va_arg(ap, int);