aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordrh <>2023-06-21 21:47:09 +0000
committerdrh <>2023-06-21 21:47:09 +0000
commit71aac8763fed3a410e588101eb3bbea001a12b10 (patch)
tree37a514e5bd358995943b6dbf5f2fe3361f4d946b /src/btree.c
parent3a202be6f1f77af9d7e35d01e9db9d9952a3e6f7 (diff)
downloadsqlite-71aac8763fed3a410e588101eb3bbea001a12b10.tar.gz
sqlite-71aac8763fed3a410e588101eb3bbea001a12b10.zip
Improved comment on the getAndInitPage() in btree.c. No code changes.
FossilOrigin-Name: dc468cfdb825083b3a4b6cb95c913961e9312e22103c5a0cd923b75c83c65e13
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 7f7932732..123cf65ce 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -2321,7 +2321,8 @@ Pgno sqlite3BtreeLastPage(Btree *p){
**
** If pCur!=0 then the page is being fetched as part of a moveToChild()
** call. Do additional sanity checking on the page in this case.
-** And if the fetch fails, this routine must decrement pCur->iPage.
+** And if that additional sanity checking fails, adjust the state of
+** the cursor so that the fetch is effectively "undone".
**
** The page is fetched as read-write unless pCur is not NULL and is
** a read-only cursor.