• Home
  • Raw
  • Download

Lines Matching refs:iNode

164528   i64 iNode;                  /* The node number */
164776 static int nodeHash(i64 iNode){
164777 return iNode % HASHSIZE;
164784 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
164786 for(p=pRtree->aHash[nodeHash(iNode)]; p && p->iNode!=iNode; p=p->pNext);
164796 iHash = nodeHash(pNode->iNode);
164806 if( pNode->iNode!=0 ){
164807 pp = &pRtree->aHash[nodeHash(pNode->iNode)];
164850 i64 iNode, /* Node number to load */
164860 if( (pNode = nodeHashLookup(pRtree, iNode)) ){
164874 rc = sqlite3_blob_reopen(pBlob, iNode);
164884 rc = sqlite3_blob_open(pRtree->db, pRtree->zDb, zTab, "data", iNode, 0,
164902 pNode->iNode = iNode;
164917 if( pNode && iNode==1 ){
165013 if( pNode->iNode ){
165014 sqlite3_bind_int64(p, 1, pNode->iNode);
165022 if( pNode->iNode==0 && rc==SQLITE_OK ){
165023 pNode->iNode = sqlite3_last_insert_rowid(pRtree->db);
165040 if( pNode->iNode==1 ){
165496 return nodeRowidIndex(pRtree, pParent, pNode->iNode, piIndex);
165862 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
165863 if( piNode ) *piNode = iNode;
165864 rc = nodeAcquire(pRtree, iNode, 0, ppLeaf);
165954 i64 iNode = 0;
165955 rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode);
165960 p->id = iNode;
166360 static int rowidWrite(Rtree *pRtree, sqlite3_int64 iRowid, sqlite3_int64 iNode){
166362 sqlite3_bind_int64(pRtree->pWriteRowid, 2, iNode);
166370 static int parentWrite(Rtree *pRtree, sqlite3_int64 iNode, sqlite3_int64 iPar){
166371 sqlite3_bind_int64(pRtree->pWriteParent, 1, iNode);
166636 return xSetMapping(pRtree, iRowid, pNode->iNode);
166676 if( pNode->iNode==1 ){
166708 || (0==pLeft->iNode && SQLITE_OK!=(rc = nodeWrite(pRtree, pLeft)))
166713 rightbbox.iRowid = pRight->iNode;
166714 leftbbox.iRowid = pLeft->iNode;
166716 if( pNode->iNode==1 ){
166747 if( pNode->iNode==1 ){
166789 while( rc==SQLITE_OK && pChild->iNode!=1 && pChild->pParent==0 ){
166791 sqlite3_bind_int64(pRtree->pReadParent, 1, pChild->iNode);
166795 i64 iNode; /* Node number of parent node */
166802 iNode = sqlite3_column_int64(pRtree->pReadParent, 0);
166803 for(pTest=pLeaf; pTest && pTest->iNode!=iNode; pTest=pTest->pParent);
166805 rc2 = nodeAcquire(pRtree, iNode, 0, &pChild->pParent);
166842 sqlite3_bind_int64(pRtree->pDeleteNode, 1, pNode->iNode);
166849 sqlite3_bind_int64(pRtree->pDeleteParent, 1, pNode->iNode);
166859 pNode->iNode = iHeight;
166880 box.iRowid = pNode->iNode;
166913 assert( pParent || pNode->iNode==1 );
166996 rc = rowidWrite(pRtree, p->iRowid, pNode->iNode);
166998 rc = parentWrite(pRtree, p->iRowid, pNode->iNode);
167046 if( iHeight<=pRtree->iReinsertHeight || pNode->iNode==1){
167056 rc = rowidWrite(pRtree, pCell->iRowid, pNode->iNode);
167058 rc = parentWrite(pRtree, pCell->iRowid, pNode->iNode);
167078 rc = ChooseLeaf(pRtree, &cell, (int)pNode->iNode, &pInsert);
167081 rc = rtreeInsertCell(pRtree, pInsert, &cell, (int)pNode->iNode);