Lines Matching refs:iNode

167357   i64 iNode;                  /* The node number */
167596 static int nodeHash(i64 iNode){
167597 return iNode % HASHSIZE;
167604 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
167606 for(p=pRtree->aHash[nodeHash(iNode)]; p && p->iNode!=iNode; p=p->pNext);
167616 iHash = nodeHash(pNode->iNode);
167626 if( pNode->iNode!=0 ){
167627 pp = &pRtree->aHash[nodeHash(pNode->iNode)];
167670 i64 iNode, /* Node number to load */
167680 if( (pNode = nodeHashLookup(pRtree, iNode)) ){
167694 rc = sqlite3_blob_reopen(pBlob, iNode);
167704 rc = sqlite3_blob_open(pRtree->db, pRtree->zDb, zTab, "data", iNode, 0,
167722 pNode->iNode = iNode;
167737 if( pNode && iNode==1 ){
167833 if( pNode->iNode ){
167834 sqlite3_bind_int64(p, 1, pNode->iNode);
167842 if( pNode->iNode==0 && rc==SQLITE_OK ){
167843 pNode->iNode = sqlite3_last_insert_rowid(pRtree->db);
167860 if( pNode->iNode==1 ){
168316 return nodeRowidIndex(pRtree, pParent, pNode->iNode, piIndex);
168682 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
168683 if( piNode ) *piNode = iNode;
168684 rc = nodeAcquire(pRtree, iNode, 0, ppLeaf);
168754 i64 iNode = 0;
168755 rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode);
168760 p->id = iNode;
169160 static int rowidWrite(Rtree *pRtree, sqlite3_int64 iRowid, sqlite3_int64 iNode){
169162 sqlite3_bind_int64(pRtree->pWriteRowid, 2, iNode);
169170 static int parentWrite(Rtree *pRtree, sqlite3_int64 iNode, sqlite3_int64 iPar){
169171 sqlite3_bind_int64(pRtree->pWriteParent, 1, iNode);
169436 return xSetMapping(pRtree, iRowid, pNode->iNode);
169476 if( pNode->iNode==1 ){
169508 || (0==pLeft->iNode && SQLITE_OK!=(rc = nodeWrite(pRtree, pLeft)))
169513 rightbbox.iRowid = pRight->iNode;
169514 leftbbox.iRowid = pLeft->iNode;
169516 if( pNode->iNode==1 ){
169547 if( pNode->iNode==1 ){
169589 while( rc==SQLITE_OK && pChild->iNode!=1 && pChild->pParent==0 ){
169591 sqlite3_bind_int64(pRtree->pReadParent, 1, pChild->iNode);
169595 i64 iNode; /* Node number of parent node */
169602 iNode = sqlite3_column_int64(pRtree->pReadParent, 0);
169603 for(pTest=pLeaf; pTest && pTest->iNode!=iNode; pTest=pTest->pParent);
169605 rc2 = nodeAcquire(pRtree, iNode, 0, &pChild->pParent);
169642 sqlite3_bind_int64(pRtree->pDeleteNode, 1, pNode->iNode);
169649 sqlite3_bind_int64(pRtree->pDeleteParent, 1, pNode->iNode);
169659 pNode->iNode = iHeight;
169680 box.iRowid = pNode->iNode;
169713 assert( pParent || pNode->iNode==1 );
169796 rc = rowidWrite(pRtree, p->iRowid, pNode->iNode);
169798 rc = parentWrite(pRtree, p->iRowid, pNode->iNode);
169846 if( iHeight<=pRtree->iReinsertHeight || pNode->iNode==1){
169856 rc = rowidWrite(pRtree, pCell->iRowid, pNode->iNode);
169858 rc = parentWrite(pRtree, pCell->iRowid, pNode->iNode);
169878 rc = ChooseLeaf(pRtree, &cell, (int)pNode->iNode, &pInsert);
169881 rc = rtreeInsertCell(pRtree, pInsert, &cell, (int)pNode->iNode);
170768 static u8 *rtreeCheckGetNode(RtreeCheck *pCheck, i64 iNode, int *pnNode){
170780 sqlite3_bind_int64(pCheck->pGetNode, 1, iNode);
170794 rtreeCheckAppendMsg(pCheck, "Node %lld missing from database", iNode);
170867 i64 iNode, /* Node id to use in error messages */
170883 "Dimension %d of cell %d on node %lld is corrupt", i, iCell, iNode
170896 , i, iCell, iNode
170915 i64 iNode /* Node to check */
170920 assert( iNode==1 || aParent!=0 );
170923 aNode = rtreeCheckGetNode(pCheck, iNode, &nNode);
170927 "Node %lld is too small (%d bytes)", iNode, nNode
170944 iNode, nCell, nNode
170950 rtreeCheckCellCoord(pCheck, iNode, i, &pCell[8], aParent);
170953 rtreeCheckMapping(pCheck, 0, iVal, iNode);
170957 rtreeCheckMapping(pCheck, 1, iVal, iNode);