Lines Matching defs:nPage
6819 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);
11097 int nPage; /* Number of pages in pPage[] */
12059 0, /* nPage */
18284 || sqlite3GlobalConfig.nPage<1 ){
18287 sqlite3GlobalConfig.nPage = 0;
35731 int nPage = 0;
35733 nPage = sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache);
35735 return nPage;
35915 unsigned int nPage; /* Total number of pages in apHash */
36480 pCache->nPage--;
36509 TESTONLY( unsigned int nPage = 0; ) /* To assert pCache->nPage is correct */
36517 pCache->nPage--;
36523 TESTONLY( nPage++; )
36527 assert( pCache->nPage==nPage );
36638 n = pCache->nPage;
36734 nPinned = pCache->nPage - pCache->nRecyclable;
36746 if( pCache->nPage>=pCache->nHash && pcache1ResizeHash(pCache) ){
36752 (pCache->nPage+1>=pCache->nMax)
36780 pCache->nPage++;
39994 ** of the file is changed to nPage pages (nPage*pPager->pageSize bytes).
39995 ** If the file on disk is currently larger than nPage pages, then use the VFS
39999 ** nPage pages. Some operating system implementations can get confused if
40007 static int pager_truncate(Pager *pPager, Pgno nPage){
40020 newSize = szPage*(i64)nPage;
40033 pPager->dbFileSize = nPage;
40586 Pgno nPage; /* Value to return via *pnPage */
40596 nPage = sqlite3WalDbsize(pPager->pWal);
40604 if( nPage==0 ){
40613 nPage = (Pgno)(n / pPager->pageSize);
40614 if( nPage==0 && n>0 ){
40615 nPage = 1;
40623 if( nPage>pPager->mxPgno ){
40624 pPager->mxPgno = (Pgno)nPage;
40627 *pnPage = nPage;
40657 Pgno nPage; /* Size of the database file */
40659 rc = pagerPagecount(pPager, &nPage);
40661 if( nPage==0 ){
41223 ** Truncate the in-memory database file image to nPage pages. This
41228 SQLITE_PRIVATE void sqlite3PagerTruncateImage(Pager *pPager, Pgno nPage){
41229 assert( pPager->dbSize>=nPage );
41231 pPager->dbSize = nPage;
42048 /* pPager->nPage = 0; */
42153 Pgno nPage; /* Number of pages in database file */
42161 rc = pagerPagecount(pPager, &nPage);
42163 if( nPage==0 ){
42392 Pgno nPage = 0;
42395 rc = pagerPagecount(pPager, &nPage);
42398 if( nPage>0 ){
42982 int nPage = 0; /* Number of pages starting at pg1 to journal */
43002 nPage = (pPg->pgno - pg1)+1;
43004 nPage = nPageCount+1-pg1;
43006 nPage = nPagePerSector;
43008 assert(nPage>0);
43010 assert((pg1+nPage)>pPg->pgno);
43012 for(ii=0; ii<nPage && rc==SQLITE_OK; ii++){
43034 /* If the PGHDR_NEED_SYNC flag is set for any of the nPage pages
43036 ** writing to any of these nPage pages may damage the others, the
43042 for(ii=0; ii<nPage; ii++){
44677 u32 nPage; /* Size of database in pages */
45536 pWal->hdr.nPage = nTruncate;
45570 if( pWal->hdr.nPage ){
45572 pWal->hdr.nPage, pWal->zWalName
46050 mxPage = pWal->hdr.nPage;
46108 i64 szDb = pWal->hdr.nPage*(i64)szPage;
46734 return pWal->hdr.nPage;
47128 pWal->hdr.nPage = nTruncate;
47768 u32 nPage; /* Number of pages in the database */
47971 Pgno nPage; /* Number of pages in the database */
48787 assert( pgno<=pBt->nPage );
48788 pBt->pHasContent = sqlite3BitvecCreate(pBt->nPage);
49843 return pBt->nPage;
49847 assert( ((p->pBt->nPage)&0x8000000)==0 );
50558 int nPage; /* Number of pages in the database */
50572 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
50574 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
50575 nPage = nPageFile;
50577 if( nPage>0 ){
50654 if( (pBt->db->flags & SQLITE_RecoveryMode)==0 && nPage>nPageFile ){
50688 pBt->nPage = nPage;
50728 if( pBt->nPage>0 ){
50756 pBt->nPage = 1;
50847 pBt->initiallyEmpty = (u8)(pBt->nPage==0);
50905 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
50908 put4byte(&pPage1->aData[28], pBt->nPage);
51236 pBt->nPage = iLastPg;
51262 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
51324 pBt->nPage = nFin;
51586 int nPage = get4byte(28+(u8*)pPage1->aData);
51587 testcase( nPage==0 );
51588 if( nPage==0 ) sqlite3PagerPagecount(pBt->pPager, &nPage);
51589 testcase( pBt->nPage!=nPage );
51590 pBt->nPage = nPage;
51660 if( iSavepoint<0 && pBt->initiallyEmpty ) pBt->nPage = 0;
51662 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
51667 assert( pBt->nPage>0 );
53236 pBt->nPage++;
53237 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ) pBt->nPage++;
53240 if( pBt->autoVacuum && PTRMAP_ISPAGE(pBt, pBt->nPage) ){
53246 TRACE(("ALLOCATE: %d from end of file (pointer-map page)\n", pBt->nPage));
53247 assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) );
53248 rc = btreeGetPage(pBt, pBt->nPage, &pPg, 1);
53254 pBt->nPage++;
53255 if( pBt->nPage==PENDING_BYTE_PAGE(pBt) ){ pBt->nPage++; }
53258 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
53259 *pPgno = pBt->nPage;
53977 static int ptrmapCheckPages(MemPage **apPage, int nPage){
53979 for(i=0; i<nPage; i++){
55742 if( iPage>pCheck->nPage ){
55949 int nPage = (sz - info.nLocal + usableSize - 5)/(usableSize - 4);
55956 checkList(pCheck, 0, pgnoOvfl, nPage, zContext);
56117 sCheck.nPage = btreePagecount(sCheck.pBt);
56122 if( sCheck.nPage==0 ){
56126 sCheck.anRef = sqlite3Malloc( (sCheck.nPage+1)*sizeof(sCheck.anRef[0]) );
56132 for(i=0; i<=sCheck.nPage; i++){ sCheck.anRef[i] = 0; }
56134 if( i<=sCheck.nPage ){
56159 for(i=1; i<=sCheck.nPage && sCheck.mxErr; i++){
56769 ** Copy nPage pages from the source b-tree to the destination.
56771 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage){
56831 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){
110343 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
110507 sqlite3GlobalConfig.nPage = va_arg(ap, int);