Lines Matching defs:pPage1

40936       sqlite3_pcache_page *pPage1;
40937 pPage1 = sqlite3GlobalConfig.pcache2.xFetch(pCache->pCache,1,0);
40938 if( ALWAYS(pPage1) ){ /* Page 1 is always available in cache, because
40940 memset(pPage1->pBuf, 0, pCache->szPage);
53921 MemPage *pPage1; /* First page of the database */
56776 pBt->pPage1 = 0;
57288 ** Get a reference to pPage1 of the database file. This will
57298 MemPage *pPage1; /* Page 1 of the database file */
57304 assert( pBt->pPage1==0 );
57307 rc = btreeGetPage(pBt, 1, &pPage1, 0);
57313 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
57315 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
57321 u8 *page1 = pPage1->aData;
57347 ** return SQLITE_OK and return without populating BtShared.pPage1.
57359 releasePage(pPage1);
57399 ** actually pageSize. Unlock the database, leave pBt->pPage1 at
57403 releasePage(pPage1);
57452 pBt->pPage1 = pPage1;
57457 releasePage(pPage1);
57458 pBt->pPage1 = 0;
57497 if( pBt->inTransaction==TRANS_NONE && pBt->pPage1!=0 ){
57498 MemPage *pPage1 = pBt->pPage1;
57499 assert( pPage1->aData );
57501 pBt->pPage1 = 0;
57502 releasePageNotNull(pPage1);
57520 pP1 = pBt->pPage1;
57656 /* Call lockBtree() until either pBt->pPage1 is populated or
57658 ** may return SQLITE_OK but leave pBt->pPage1 set to 0 if after
57663 while( pBt->pPage1==0 && SQLITE_OK==(rc = lockBtree(pBt)) );
57699 MemPage *pPage1 = pBt->pPage1;
57713 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
57714 rc = sqlite3PagerWrite(pPage1->pDbPage);
57716 put4byte(&pPage1->aData[28], pBt->nPage);
57960 nFreeList = get4byte(&pBt->pPage1->aData[36]);
58081 Pgno nFree = get4byte(&pBt->pPage1->aData[36]);
58093 rc = sqlite3PagerWrite(pBt->pPage1->pDbPage);
58094 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
58136 nFree = get4byte(&pBt->pPage1->aData[36]);
58146 rc = sqlite3PagerWrite(pBt->pPage1->pDbPage);
58147 put4byte(&pBt->pPage1->aData[32], 0);
58148 put4byte(&pBt->pPage1->aData[36], 0);
58149 put4byte(&pBt->pPage1->aData[28], nFin);
58396 MemPage *pPage1;
58423 /* The rollback may have destroyed the pPage1->aData value. So
58425 ** sure pPage1->aData is set correctly. */
58426 if( btreeGetPage(pBt, 1, &pPage1, 0)==SQLITE_OK ){
58427 int nPage = get4byte(28+(u8*)pPage1->aData);
58432 releasePage(pPage1);
58506 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
58573 assert( pBt->pPage1 && pBt->pPage1->aData );
59060 && pBt->pPage1->aData[19]==0x01 /* (5) */
59989 MemPage *pPage1;
59999 pPage1 = pBt->pPage1;
60003 n = get4byte(&pPage1->aData[36]);
60038 rc = sqlite3PagerWrite(pPage1->pDbPage);
60040 put4byte(&pPage1->aData[36], n-1);
60058 iTrunk = get4byte(&pPage1->aData[32]);
60085 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
60109 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
60143 assert( sqlite3PagerIswriteable(pPage1->pDbPage) );
60144 put4byte(&pPage1->aData[32], iNewTrunk);
60244 rc = sqlite3PagerWrite(pBt->pPage1->pDbPage);
60268 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
60307 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
60324 /* Increment the free page count on pPage1 */
60325 rc = sqlite3PagerWrite(pPage1->pDbPage);
60327 nFree = get4byte(&pPage1->aData[36]);
60328 put4byte(&pPage1->aData[36], nFree+1);
60360 iTrunk = get4byte(&pPage1->aData[32]);
60421 put4byte(&pPage1->aData[32], iPage);
62847 assert( sqlite3PagerIswriteable(pBt->pPage1->pDbPage) );
63136 assert( pBt->pPage1 );
63142 *pMeta = get4byte(&pBt->pPage1->aData[36 + idx*4]);
63167 assert( pBt->pPage1!=0 );
63168 pP1 = pBt->pPage1->aData;
63169 rc = sqlite3PagerWrite(pBt->pPage1->pDbPage);
63822 checkList(&sCheck, 1, get4byte(&pBt->pPage1->aData[32]),
63823 get4byte(&pBt->pPage1->aData[36]));
64111 u8 *aData = pBt->pPage1->aData;
64115 rc = sqlite3PagerWrite(pBt->pPage1->pDbPage);