mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add a single new ALWAYS() to rtree.c, with justification.
FossilOrigin-Name: 778e4499cdf2083d5431738099dedf0aade9271f661e09ca3278e0109bb1e720
This commit is contained in:
@ -2800,7 +2800,9 @@ static int fixBoundingBox(Rtree *pRtree, RtreeNode *pNode){
|
||||
}
|
||||
box.iRowid = pNode->iNode;
|
||||
rc = nodeParentIndex(pRtree, pNode, &ii);
|
||||
if( rc==SQLITE_OK ){
|
||||
/* When we are fixing up a bounding box, we've already
|
||||
** vvvvvv--- decended down through the tree so we know it is correct */
|
||||
if( ALWAYS(rc==SQLITE_OK) ){
|
||||
nodeOverwriteCell(pRtree, pParent, &box, ii);
|
||||
rc = fixBoundingBox(pRtree, pParent);
|
||||
}
|
||||
|
Reference in New Issue
Block a user