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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user