Lines Matching refs:pTrunk
54230 MemPage *pTrunk = 0;
54277 pPrevTrunk = pTrunk;
54287 rc = btreeGetPage(pBt, iTrunk, &pTrunk, 0);
54290 pTrunk = 0;
54293 assert( pTrunk!=0 );
54294 assert( pTrunk->aData!=0 );
54296 k = get4byte(&pTrunk->aData[4]); /* # of leaves on this trunk page */
54302 rc = sqlite3PagerWrite(pTrunk->pDbPage);
54307 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
54308 *ppPage = pTrunk;
54309 pTrunk = 0;
54321 *ppPage = pTrunk;
54323 rc = sqlite3PagerWrite(pTrunk->pDbPage);
54329 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
54335 memcpy(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4);
54343 Pgno iNewTrunk = get4byte(&pTrunk->aData[8]);
54358 memcpy(&pNewTrunk->aData[0], &pTrunk->aData[0], 4);
54360 memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4);
54373 pTrunk = 0;
54380 unsigned char *aData = pTrunk->aData;
54409 *pPgno, closest+1, k, pTrunk->pgno, n-1));
54410 rc = sqlite3PagerWrite(pTrunk->pDbPage);
54473 releasePage(pTrunk);
54501 MemPage *pTrunk = 0; /* Free-list trunk page */
54556 rc = btreeGetPage(pBt, iTrunk, &pTrunk, 0);
54561 nLeaf = get4byte(&pTrunk->aData[4]);
54582 rc = sqlite3PagerWrite(pTrunk->pDbPage);
54584 put4byte(&pTrunk->aData[4], nLeaf+1);
54585 put4byte(&pTrunk->aData[8+nLeaf*4], iPage);
54591 TRACE(("FREE-PAGE: %d leaf on trunk page %d\n",pPage->pgno,pTrunk->pgno));
54619 releasePage(pTrunk);