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

The page size becomes fixed as soon as page1 from a non-empty database file

is read.

FossilOrigin-Name: 6064584d578f0ac7aba3f67912a5d9eb1a3c6001469f6b9becbe68871131f887
This commit is contained in:
drh
2019-01-06 02:06:31 +00:00
parent a8e057618a
commit dcc2700d7e
3 changed files with 8 additions and 7 deletions

View File

@@ -3100,6 +3100,7 @@ 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