aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-09-30 00:48:45 +0000
committerdrh <drh@noemail.net>2020-09-30 00:48:45 +0000
commita957e22fa4d54628b6ee991c44cce1f129ee26cd (patch)
tree3042e418e02c2110e1c3b8c61c5dfe21044a5a47 /src
parentf287d0010880033a6b9745a351cac39c554fc591 (diff)
downloadsqlite-a957e22fa4d54628b6ee991c44cce1f129ee26cd.tar.gz
sqlite-a957e22fa4d54628b6ee991c44cce1f129ee26cd.zip
Add an sqlite3FaultSim() call to btreeNext() to make it easier to
simulate I/O errors in calls to sqlite3BtreeNext(), and in OP_SeekScan. FossilOrigin-Name: 29cca775d3f5411624f0a8d55d34a038a24f1009d25b097315adb64e70c4b299
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 7f1a15198..00e5da6c4 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -5750,7 +5750,7 @@ static SQLITE_NOINLINE int btreeNext(BtCursor *pCur){
pPage = pCur->pPage;
idx = ++pCur->ix;
- if( !pPage->isInit ){
+ if( !pPage->isInit || sqlite3FaultSim(412) ){
/* The only known way for this to happen is for there to be a
** recursive SQL function that does a DELETE operation as part of a
** SELECT which deletes content out from under an active cursor