1
0
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:
drh
2021-09-16 17:02:59 +00:00
parent 495f78d851
commit 051c9ba1be
3 changed files with 10 additions and 8 deletions

View File

@ -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);
}