aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2021-10-08 18:12:37 +0000
committerdrh <>2021-10-08 18:12:37 +0000
commit15b5411a67d4ce4b9b9ddb43e26f3f7dbcac8407 (patch)
treeacbaa4df49eb2bd29a92bebb4858caf240feb584 /src
parent635e6a92a0a2ef0f97b6d1ab85d5eba1625d3cad (diff)
downloadsqlite-15b5411a67d4ce4b9b9ddb43e26f3f7dbcac8407.tar.gz
sqlite-15b5411a67d4ce4b9b9ddb43e26f3f7dbcac8407.zip
Remove a "harmless()" macro that is no longer relevant.
FossilOrigin-Name: 87c357c60168fdc52c82382aa7288d66886f5fbe2ae6af68344dbcfdbca9069b
Diffstat (limited to 'src')
-rw-r--r--src/btree.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/btree.c b/src/btree.c
index 9c22c7035..f5d999674 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -5871,16 +5871,6 @@ static SQLITE_NOINLINE int btreeNext(BtCursor *pCur){
return SQLITE_CORRUPT_BKPT;
}
- /* If the database file is corrupt, it is possible for the value of idx
- ** to be invalid here. This can only occur if a second cursor modifies
- ** the page while cursor pCur is holding a reference to it. Which can
- ** only happen if the database is corrupt in such a way as to link the
- ** page into more than one b-tree structure.
- **
- ** Update 2019-12-23: appears to long longer be possible after the
- ** addition of anotherValidCursor() condition on balance_deeper(). */
- harmless( idx>pPage->nCell );
-
if( idx>=pPage->nCell ){
if( !pPage->leaf ){
rc = moveToChild(pCur, get4byte(&pPage->aData[pPage->hdrOffset+8]));