1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Improved comment on the getAndInitPage() in btree.c. No code changes.

FossilOrigin-Name: dc468cfdb825083b3a4b6cb95c913961e9312e22103c5a0cd923b75c83c65e13
This commit is contained in:
drh
2023-06-21 21:47:09 +00:00
parent 3a202be6f1
commit 71aac8763f
3 changed files with 9 additions and 8 deletions

View File

@@ -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.