mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Defer setting the BTS_PAGESIZE_FIXED flag until after we are certain there
are no errors and the page size has been set. FossilOrigin-Name: 70e12efd1b189560e07f59db03a20b8c1ab19224aae4fc3d7c0bdfd2568064ea
This commit is contained in:
@@ -3339,7 +3339,6 @@ static int lockBtree(BtShared *pBt){
|
||||
){
|
||||
goto page1_init_failed;
|
||||
}
|
||||
pBt->btsFlags |= BTS_PAGESIZE_FIXED;
|
||||
assert( (pageSize & 7)==0 );
|
||||
/* EVIDENCE-OF: R-59310-51205 The "reserved space" size in the 1-byte
|
||||
** integer at offset 20 is the number of bytes of space at the end of
|
||||
@@ -3378,6 +3377,7 @@ static int lockBtree(BtShared *pBt){
|
||||
if( usableSize<480 ){
|
||||
goto page1_init_failed;
|
||||
}
|
||||
pBt->btsFlags |= BTS_PAGESIZE_FIXED;
|
||||
pBt->pageSize = pageSize;
|
||||
pBt->usableSize = usableSize;
|
||||
#ifndef SQLITE_OMIT_AUTOVACUUM
|
||||
|
Reference in New Issue
Block a user