1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Remove unnecessary code from sqlite3BtreeClose() and add test cases.

FossilOrigin-Name: edbfdcaefae1e9a42c046c058341bf5b0f533c0b0cbd39543fcaa2a83d67561d
This commit is contained in:
drh
2021-03-18 16:36:31 +00:00
parent 5a4a15fd2e
commit 76f7b16f1e
4 changed files with 124 additions and 9 deletions

View File

@@ -2754,7 +2754,6 @@ int sqlite3BtreeClose(Btree *p){
}
}
#endif
pBt->openFlags &= ~BTREE_SINGLE;
/* Rollback any active transaction and free the handle structure.
** The call to sqlite3BtreeRollback() drops any table-locks held by