Home
last modified time | relevance | path

Searched refs:iPg (Results 1 – 23 of 23) sorted by relevance

/sqlite-3.40.0/ext/lsm1/
H A Dlsm_file.c884 LsmPgno iPg; in fsFirstPageOnBlock() local
899 return iPg; in fsFirstPageOnBlock()
939 return ( iPg && (iPg % nPagePerBlock)==0 ); in fsIsLast()
1067 if( p->iPg==iPg) break; in fsPageFindInHash()
1837 return (iPg!=0 && iPg!=lsmFsRedirectPage(pFS, p->pRedirect, iPg)); in fsPageRedirects()
1998 LsmPgno iPg = pPg->iPg; in lsmFsDbPageNext() local
2011 rc = fsGetPageBefore(pFS, pRun, iPg, &iPg); in lsmFsDbPageNext()
2249 iPg++; in lsmFsDbPageLast()
2252 rc = fsGetPageBefore(pFS, pSeg, iPg, &iPg); in lsmFsDbPageLast()
2280 assert( iPg==1 || iPg==2 ); in lsmFsMetaPageGet()
[all …]
H A Dlsm_sorted.c642 int iPg = pCsr->iPg; in btreeCursorLoadKey() local
691 pCsr->iPg--; in btreeCursorNext()
697 pCsr->iPg--; in btreeCursorNext()
799 p->iPg = lsmFsPageNumber(pCsr->aPg[pCsr->iPg].pPage); in btreeCursorPosition()
802 p->iPg = 0; in btreeCursorPosition()
811 p->iPg = lsmFsPageNumber(pCsr->aPg[pCsr->iPg].pPage); in btreeCursorSplitkey()
842 if( p->iPg ){ in btreeCursorRestore()
939 iPg++; in btreeCursorRestore()
1102 if( p->iPg==pMerge->aInput[i].iPg ) break; in sortedSplitkeySegment()
1776 int iPg; in seekInBtree() local
[all …]
H A Dlsm_ckpt.c345 ckptAppend64(p, &iOut, pMerge->aInput[i].iPg, pRc); in ckptExportLevel()
348 ckptAppend64(p, &iOut, pMerge->splitkey.iPg, pRc); in ckptExportLevel()
538 pMerge->aInput[i].iPg = ckptGobble64(aInt, &iIn); in ckptSetupMerge()
541 pMerge->splitkey.iPg = ckptGobble64(aInt, &iIn); in ckptSetupMerge()
H A DlsmInt.h459 LsmPgno iPg; /* Page on which next input is stored */ member
/sqlite-3.40.0/ext/misc/
H A Dmmapwarm.c82 sqlite3_int64 iPg = 1; in sqlite3_mmap_warm() local
86 rc = p->xFetch(pFd, pgsz*iPg, pgsz, (void**)&pMap); in sqlite3_mmap_warm()
92 rc = p->xUnfetch(pFd, pgsz*iPg, (void*)pMap); in sqlite3_mmap_warm()
94 iPg++; in sqlite3_mmap_warm()
97 "sqlite3_mmap_warm_cache: Warmed up %d pages of %s", iPg==1?0:iPg, in sqlite3_mmap_warm()
H A Dappendvfs.c150 static int apndShmMap(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
383 int iPg, in apndShmMap() argument
389 return pFile->pMethods->xShmMap(pFile,iPg,pgsz,bExtend,pp); in apndShmMap()
H A Dvfsstat.c160 static int vstatShmMap(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
387 int iPg, in vstatShmMap() argument
393 return p->pReal->pMethods->xShmMap(p->pReal, iPg, pgsz, bExtend, pp); in vstatShmMap()
H A Dcksumvfs.c220 static int cksmShmMap(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
621 int iPg, in cksmShmMap() argument
627 return pFile->pMethods->xShmMap(pFile,iPg,pgsz,bExtend,pp); in cksmShmMap()
H A Dmemvfs.c82 static int memShmMap(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
281 int iPg, in memShmMap() argument
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_io.c148 int iPg; in doOneCmd() local
159 for(iPg=0; iPg<nPg; iPg++){ in doOneCmd()
H A Dlsmtest_main.c1234 int iPg; in do_writer_test() local
1236 for(iPg=0; iPg<(nSize/nPage); iPg++){ in do_writer_test()
1253 int iPg; in do_writer_test() local
1256 for(iPg=0; iPg<(nSize/nPage); iPg++){ in do_writer_test()
1269 int iPg; in do_writer_test() local
1273 for(iPg=0; iPg<(nSize/nPage); iPg++){ in do_writer_test()
H A Dlsmtest_func.c82 unsigned int iPg = 0; in do_show() local
125 iPg = atoi(azArg[iDb+2]); in do_show()
152 rc = lsm_info(pDb, eOpt, iPg, &z); in do_show()
/sqlite-3.40.0/src/
H A Dbackup.c475 Pgno iPg; in sqlite3_backup_step() local
494 for(iPg=nDestTruncate; rc==SQLITE_OK && iPg<=(Pgno)nDstPage; iPg++){ in sqlite3_backup_step()
495 if( iPg!=PENDING_BYTE_PAGE(p->pDest->pBt) ){ in sqlite3_backup_step()
497 rc = sqlite3PagerGet(pDestPager, iPg, &pPg, 0); in sqlite3_backup_step()
H A Dwal.c1263 u32 iPg; /* Current 32KB wal-index page */ in walIndexRecover() local
1321 for(iPg=0; iPg<=(u32)walFramePage(iLastFrame); iPg++){ in walIndexRecover()
1325 u32 iFirst = 1 + (iPg==0?0:HASHTABLE_NPAGE_ONE+(iPg-1)*HASHTABLE_NPAGE); in walIndexRecover()
1327 rc = walIndexPage(pWal, iPg, (volatile u32**)&aShare); in walIndexRecover()
1330 pWal->apWiData[iPg] = aPrivate; in walIndexRecover()
1356 pWal->apWiData[iPg] = aShare; in walIndexRecover()
1357 nHdr = (iPg==0 ? WALINDEX_HDR_SIZE : 0); in walIndexRecover()
1604 u32 iPg = pSegment->aPgno[pSegment->aIndex[pSegment->iNext]]; in walIteratorNext() local
1605 if( iPg>iMin ){ in walIteratorNext()
1606 if( iPg<iRet ){ in walIteratorNext()
[all …]
H A Dtest_journal.c387 u32 iPg; in openTransaction() local
388 for(iPg=nDbsize+1; iPg<=pMain->nPage; iPg++){ in openTransaction()
389 sqlite3BitvecSet(pMain->pWritable, iPg); in openTransaction()
H A Dbtree.c8517 int iPg = i<0 ? -i : i; in balance_nonroot() local
8518 assert( iPg>=0 && iPg<nNew ); in balance_nonroot()
8521 || cntOld[iPg-1]>=cntNew[iPg-1] /* Condition (1) is true */ in balance_nonroot()
8529 assert( iPg==0 || cntOld[iPg-1]>=cntNew[iPg-1] || abDone[iPg-1] ); in balance_nonroot()
8533 assert( cntNew[iPg]>=cntOld[iPg] || abDone[iPg+1] ); in balance_nonroot()
8535 if( iPg==0 ){ in balance_nonroot()
8539 iOld = iPg<nOld ? (cntOld[iPg-1] + !leafData) : b.nCell; in balance_nonroot()
8546 abDone[iPg]++; in balance_nonroot()
8547 apNew[iPg]->nFree = usableSpace-szNew[iPg]; in balance_nonroot()
10185 return (pCheck->aPgRef[iPg/8] & (1 << (iPg & 0x07))); in getPageReferenced()
[all …]
H A Ddbstat.c537 u32 iPg, /* Page number to load */ in statGetPage() argument
552 rc = sqlite3PagerGet(sqlite3BtreePager(pBt), iPg, &pDbPage, 0); in statGetPage()
H A Dos_unix.c4801 int iPg; in unixShmMap() local
4805 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){ in unixShmMap()
4807 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){ in unixShmMap()
H A Dpager.c3059 static int pagerUndoCallback(void *pCtx, Pgno iPg){ in pagerUndoCallback() argument
3065 pPg = sqlite3PagerLookup(pPager, iPg); in pagerUndoCallback()
H A Dsqlite.h.in848 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
/sqlite-3.40.0/ext/recover/
H A Dsqlite3recover.c404 static void recoverBitmapSet(RecoverBitmap *pMap, i64 iPg){ in recoverBitmapSet() argument
405 if( iPg<=pMap->nPg ){ in recoverBitmapSet()
406 int iElem = (iPg / 32); in recoverBitmapSet()
407 int iBit = (iPg % 32); in recoverBitmapSet()
418 if( iPg<=pMap->nPg && iPg>0 ){ in recoverBitmapQuery()
419 int iElem = (iPg / 32); in recoverBitmapQuery()
420 int iBit = (iPg % 32); in recoverBitmapQuery()
1479 i64 iPg, in recoverLostAndFoundFindRoot() argument
1496 sqlite3_bind_int64(pLaf->pFindRoot, 1, iPg); in recoverLostAndFoundFindRoot()
1500 *piRoot = iPg; in recoverLostAndFoundFindRoot()
[all …]
/sqlite-3.40.0/tool/
H A Dshowdb.c240 static void print_page(u32 iPg){ in print_page() argument
243 iStart = ((i64)(iPg-1))*g.pagesize; in print_page()
245 iPg, iStart, iStart+g.pagesize-1); in print_page()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_index.c2434 int iPg = 1; in fts5SegIterSeekInit() local
2452 iPg = (int)(val>>1); in fts5SegIterSeekInit()
2458 if( iPg<pSeg->pgnoFirst ){ in fts5SegIterSeekInit()
2459 iPg = pSeg->pgnoFirst; in fts5SegIterSeekInit()
2463 pIter->iLeafPgno = iPg - 1; in fts5SegIterSeekInit()
6156 int iPg = 0; in fts5IndexIntegrityCheckSegment() local
6165 for(iPg=iPrevLeaf+1; iPg<fts5DlidxIterPgno(pDlidx); iPg++){ in fts5IndexIntegrityCheckSegment()
6166 iKey = FTS5_SEGMENT_ROWID(iSegid, iPg); in fts5IndexIntegrityCheckSegment()
6193 iDlidxPrevLeaf = iPg; in fts5IndexIntegrityCheckSegment()