| /sqlite-3.40.0/tool/ |
| H A D | dbtotxt.c | 62 int iPage; /* Current page number */ in main() local 168 iPage = i/pgsz + 1; in main() 169 if( lastPage!=iPage ){ in main() 170 printf("| page %d offset %d\n", iPage, (iPage-1)*pgsz); in main() 171 lastPage = iPage; in main() 173 printf("| %5d:", i-(iPage-1)*pgsz); in main()
|
| /sqlite-3.40.0/src/ |
| H A D | dbstat.c | 336 pCsr->iPage = 0; in statResetCsr() 580 if( pCsr->iPage<0 ){ in statNext() 599 pCsr->iPage = 0; in statNext() 607 StatPage *p = &pCsr->aPage[pCsr->iPage]; in statNext() 643 pCsr->iPage--; in statNext() 644 if( pCsr->isAgg && pCsr->iPage<0 ){ in statNext() 651 pCsr->iPage++; in statNext() 652 if( pCsr->iPage>=ArraySize(pCsr->aPage) ){ in statNext() 656 assert( p==&pCsr->aPage[pCsr->iPage-1] ); in statNext() 679 StatPage *p = &pCsr->aPage[pCsr->iPage]; in statNext() [all …]
|
| H A D | btree.c | 649 pCur->iPage = -1; in btreeReleaseAllCursorPages() 2305 pCur->iPage--; in getAndInitPage() 4563 pCur->iPage = -1; in btreeCursor() 5266 pCur->iPage++; in moveToChild() 6446 if( iPage>mxPage || iPage<2 ){ in allocateBtreePage() 6452 || (iPage==nearby || (iPage<nearby && eMode==BTALLOC_LE)) in allocateBtreePage() 6573 if( iPage<2 || iPage>pBt->nPage ){ in freePage2() 8741 int iPage; in balance() local 8751 }else if( (iPage = pCur->iPage)==0 ){ in balance() 9583 pCur->iPage--; in sqlite3BtreeDelete() [all …]
|
| H A D | wal.c | 639 if( pWal->nWiData<=iPage ){ in walIndexPageRealloc() 650 pWal->nWiData = iPage+1; in walIndexPageRealloc() 654 assert( pWal->apWiData[iPage]==0 ); in walIndexPageRealloc() 662 assert( pWal->apWiData[iPage]!=0 in walIndexPageRealloc() 664 || (pWal->writeLock==0 && iPage==0) ); in walIndexPageRealloc() 676 *ppPage = pWal->apWiData[iPage]; in walIndexPageRealloc() 685 if( pWal->nWiData<=iPage || (*ppPage = pWal->apWiData[iPage])==0 ){ in walIndexPage() 832 sqlite3Put4byte(&aFrame[0], iPage); in walEncodeFrame() 971 static int walHash(u32 iPage){ in walHash() argument 972 assert( iPage>0 ); in walHash() [all …]
|
| H A D | test_vfs.c | 877 static void tvfsAllocPage(TestvfsBuffer *p, int iPage, int pgsz){ in tvfsAllocPage() argument 878 assert( iPage<TESTVFS_MAX_PAGES ); in tvfsAllocPage() 879 if( p->aPage[iPage]==0 ){ in tvfsAllocPage() 880 p->aPage[iPage] = (u8 *)ckalloc(pgsz); in tvfsAllocPage() 881 memset(p->aPage[iPage], 0, pgsz); in tvfsAllocPage() 888 int iPage, /* Page to retrieve */ in tvfsShmMap() argument 899 return pReal->pMethods->xShmMap(pReal, iPage, pgsz, isWrite, pp); in tvfsShmMap() 912 Tcl_ListObjAppendElement(p->interp, pArg, Tcl_NewIntObj(iPage)); in tvfsShmMap() 925 if( rc==SQLITE_OK && isWrite && !pFd->pShm->aPage[iPage] ){ in tvfsShmMap() 926 tvfsAllocPage(pFd->pShm, iPage, pgsz); in tvfsShmMap() [all …]
|
| H A D | backup.c | 666 Pgno iPage, in backupUpdate() argument 672 if( !isFatalError(p->rc) && iPage<p->iNext ){ in backupUpdate() 680 rc = backupOnePage(p, iPage, aData, 1); in backupUpdate() 689 void sqlite3BackupUpdate(sqlite3_backup *pBackup, Pgno iPage, const u8 *aData){ in sqlite3BackupUpdate() argument 690 if( pBackup ) backupUpdate(pBackup, iPage, aData); in sqlite3BackupUpdate()
|
| H A D | test_btree.c | 57 MemPage *pPage = pCur->apPage[pCur->iPage]; in sqlite3BtreeCursorList() 61 pPage ? pPage->pgno : 0, pCur->aiIdx[pCur->iPage], in sqlite3BtreeCursorList()
|
| H A D | os.c | 181 int iPage, in sqlite3OsShmMap() argument 187 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp); in sqlite3OsShmMap()
|
| H A D | btreeInt.h | 544 i8 iPage; /* Index of current page in apPage */ member
|
| /sqlite-3.40.0/ext/recover/ |
| H A D | sqlite3recover.c | 1511 static void recoverLostAndFoundOnePage(sqlite3_recover *p, i64 iPage){ in recoverLostAndFoundOnePage() argument 1524 if( recoverLostAndFoundFindRoot(p, iPage, &iRoot) ) return; in recoverLostAndFoundOnePage() 1525 sqlite3_bind_int64(pPageData, 1, iPage); in recoverLostAndFoundOnePage() 1533 sqlite3_bind_int64(pInsert, 2, iPage); /* pgno */ in recoverLostAndFoundOnePage() 1599 i64 iPage = sqlite3_column_int64(pLaf->pAllPage, 0); in recoverLostAndFound3Step() local 1600 if( recoverBitmapQuery(pLaf->pUsed, iPage)==0 ){ in recoverLostAndFound3Step() 1601 recoverLostAndFoundOnePage(p, iPage); in recoverLostAndFound3Step() 1761 i64 iPage = sqlite3_column_int64(pSel, 0); in recoverWriteDataStep() local 1765 int bNewCell = (p1->iPrevPage!=iPage || p1->iPrevCell!=iCell); in recoverWriteDataStep() 1812 if( iPage!=0 ){ in recoverWriteDataStep() [all …]
|
| /sqlite-3.40.0/test/ |
| H A D | corruptB.test | 182 set iPage [expr ($t2_root-1)*1024] 183 set iCellarray [expr $iPage + 8] 186 hexio_write test.db [expr $iPage+$iRecord+3] FF00
|
| H A D | fuzzcheck.c | 337 int iPage; /* Current page number */ in renderDbSqlForCLI() local 360 iPage = i/pgsz + 1; in renderDbSqlForCLI() 361 if( lastPage!=iPage ){ in renderDbSqlForCLI() 362 fprintf(out,"| page %d offset %d\n", iPage, (iPage-1)*pgsz); in renderDbSqlForCLI() 363 lastPage = iPage; in renderDbSqlForCLI() 365 fprintf(out,"| %5d:", i-(iPage-1)*pgsz); in renderDbSqlForCLI()
|