Lines Matching refs:pLeaf

58711     MemPage *pLeaf = pCur->apPage[pCur->iPage];
58716 pCell = findCell(pLeaf, pLeaf->nCell-1);
58717 nCell = cellSizePtr(pLeaf, pCell);
58723 rc = sqlite3PagerWrite(pLeaf->pDbPage);
58725 dropCell(pLeaf, pLeaf->nCell-1, nCell, &rc);
140633 NodeWriter *pLeaf; /* Object used to write leaf nodes */
140635 pLeaf = &pWriter->aNodeWriter[0];
140636 nPrefix = fts3PrefixCompress(pLeaf->key.a, pLeaf->key.n, zTerm, nTerm);
140646 if( pLeaf->block.n>0 && (pLeaf->block.n + nSpace)>p->nNodeSize ){
140647 rc = fts3WriteSegment(p, pLeaf->iBlock, pLeaf->block.a, pLeaf->block.n);
140654 ** to the database (still available in pLeaf->key), and
140667 pLeaf->iBlock++;
140668 pLeaf->key.n = 0;
140669 pLeaf->block.n = 0;
140678 blobGrowBuffer(&pLeaf->block, pLeaf->block.n + nSpace, &rc);
140680 if( pLeaf->block.n==0 ){
140681 pLeaf->block.n = 1;
140682 pLeaf->block.a[0] = '\0';
140685 &pLeaf->block, &pLeaf->key, zTerm, nTerm, aDoclist, nDoclist
146190 RtreeNode *pLeaf; /* Leaf on which the required cell resides */
146194 rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode);
146195 if( rc==SQLITE_OK && pLeaf!=0 ){
146198 pCsr->aNode[0] = pLeaf;
146201 rc = nodeRowidIndex(pRtree, pLeaf, iRowid, &iCell);
146995 ** If node pLeaf is not the root of the r-tree and its pParent pointer is
146996 ** still NULL, load all ancestor nodes of pLeaf into memory and populate
146997 ** the pLeaf->pParent chain all the way up to the root node.
147002 ** the entry resides (argument pLeaf). Once the leaf is located, this
147005 static int fixLeafParent(Rtree *pRtree, RtreeNode *pLeaf){
147007 RtreeNode *pChild = pLeaf;
147022 for(pTest=pLeaf; pTest && pTest->iNode!=iNode; pTest=pTest->pParent);
147328 RtreeNode *pLeaf = 0; /* Leaf node containing record iDelete */
147329 int iCell; /* Index of iDelete cell in pLeaf */
147340 rc = findLeafNode(pRtree, iDelete, &pLeaf, 0);
147346 rc = nodeRowidIndex(pRtree, pLeaf, iDelete, &iCell);
147348 rc = deleteCell(pRtree, pLeaf, iCell, 0);
147350 rc2 = nodeRelease(pRtree, pLeaf);
147389 for(pLeaf=pRtree->pDeleted; pLeaf; pLeaf=pRtree->pDeleted){
147391 rc = reinsertNodeContent(pRtree, pLeaf);
147393 pRtree->pDeleted = pLeaf->pNext;
147394 sqlite3_free(pLeaf);
147531 RtreeNode *pLeaf = 0;
147540 rc = ChooseLeaf(pRtree, &cell, 0, &pLeaf);
147545 rc = rtreeInsertCell(pRtree, pLeaf, &cell, 0);
147546 rc2 = nodeRelease(pRtree, pLeaf);