Lines Matching refs:pLeaf

1852     RtreeNode *pLeaf;        /* Leaf on which the required cell resides */  in rtreeFilter()  local
1860 rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode); in rtreeFilter()
1863 pLeaf = 0; in rtreeFilter()
1865 if( rc==SQLITE_OK && pLeaf!=0 ){ in rtreeFilter()
1868 pCsr->aNode[0] = pLeaf; in rtreeFilter()
1871 rc = nodeRowidIndex(pRtree, pLeaf, iRowid, &iCell); in rtreeFilter()
2727 static int fixLeafParent(Rtree *pRtree, RtreeNode *pLeaf){ in fixLeafParent() argument
2729 RtreeNode *pChild = pLeaf; in fixLeafParent()
2744 for(pTest=pLeaf; pTest && pTest->iNode!=iNode; pTest=pTest->pParent); in fixLeafParent()
3054 RtreeNode *pLeaf = 0; /* Leaf node containing record iDelete */ in rtreeDeleteRowid() local
3066 rc = findLeafNode(pRtree, iDelete, &pLeaf, 0); in rtreeDeleteRowid()
3070 assert( pLeaf!=0 || rc!=SQLITE_OK || CORRUPT_DB ); in rtreeDeleteRowid()
3074 if( rc==SQLITE_OK && pLeaf ){ in rtreeDeleteRowid()
3076 rc = nodeRowidIndex(pRtree, pLeaf, iDelete, &iCell); in rtreeDeleteRowid()
3078 rc = deleteCell(pRtree, pLeaf, iCell, 0); in rtreeDeleteRowid()
3080 rc2 = nodeRelease(pRtree, pLeaf); in rtreeDeleteRowid()
3119 for(pLeaf=pRtree->pDeleted; pLeaf; pLeaf=pRtree->pDeleted){ in rtreeDeleteRowid()
3121 rc = reinsertNodeContent(pRtree, pLeaf); in rtreeDeleteRowid()
3123 pRtree->pDeleted = pLeaf->pNext; in rtreeDeleteRowid()
3125 sqlite3_free(pLeaf); in rtreeDeleteRowid()
3326 RtreeNode *pLeaf = 0; in rtreeUpdate() local
3335 rc = ChooseLeaf(pRtree, &cell, 0, &pLeaf); in rtreeUpdate()
3340 rc = rtreeInsertCell(pRtree, pLeaf, &cell, 0); in rtreeUpdate()
3341 rc2 = nodeRelease(pRtree, pLeaf); in rtreeUpdate()