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

Fix a faulty assert() in the btree part of the "PRAGMA page_size = ?" code.

FossilOrigin-Name: 90b197489a37e01dcb2f3a8182848c1301e1757b
This commit is contained in:
dan
2015-05-05 10:03:08 +00:00
parent b6750b1057
commit dd14ecbca5
4 changed files with 28 additions and 10 deletions

View File

@@ -2429,7 +2429,7 @@ int sqlite3BtreeSetPageSize(Btree *p, int pageSize, int nReserve, int iFix){
if( pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE &&
((pageSize-1)&pageSize)==0 ){
assert( (pageSize & 7)==0 );
assert( !pBt->pPage1 && !pBt->pCursor );
assert( !pBt->pCursor );
pBt->pageSize = (u32)pageSize;
freeTempSpace(pBt);
}