diff options
author | drh <drh@noemail.net> | 2016-03-04 03:43:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-03-04 03:43:10 +0000 |
commit | 9878fefd6fcc28dbe4a40a2dfa8659c1dcce14bc (patch) | |
tree | d48a93ed2e7307e2a7d2241c901541306385c47d /src/sqliteLimit.h | |
parent | e808d7c1fe6bf8e261935493a8f22466ef794954 (diff) | |
download | sqlite-9878fefd6fcc28dbe4a40a2dfa8659c1dcce14bc.tar.gz sqlite-9878fefd6fcc28dbe4a40a2dfa8659c1dcce14bc.zip |
Change the default page size for new database files to 4096 (from 1024).
Except, when building the testfixture, preserve the legacy page size.
Also fix a comment on SQLITE_MAX_ATTACHED.
FossilOrigin-Name: 2e8a9ca9d3d6efddc31f01074d14acae56568c37
Diffstat (limited to 'src/sqliteLimit.h')
-rw-r--r-- | src/sqliteLimit.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sqliteLimit.h b/src/sqliteLimit.h index 75cad1274..ac0688195 100644 --- a/src/sqliteLimit.h +++ b/src/sqliteLimit.h @@ -120,8 +120,9 @@ /* ** The maximum number of attached databases. This must be between 0 -** and 62. The upper bound on 62 is because a 64-bit integer bitmap -** is used internally to track attached databases. +** and 125. The upper bound of 125 is because the attached databases are +** counted using a signed 8-bit integer which has a maximum value of 127 +** and we have to allow 2 extra counts for the "main" and "temp" databases. */ #ifndef SQLITE_MAX_ATTACHED # define SQLITE_MAX_ATTACHED 10 @@ -156,7 +157,7 @@ ** The default size of a database page. */ #ifndef SQLITE_DEFAULT_PAGE_SIZE -# define SQLITE_DEFAULT_PAGE_SIZE 1024 +# define SQLITE_DEFAULT_PAGE_SIZE 4096 #endif #if SQLITE_DEFAULT_PAGE_SIZE>SQLITE_MAX_PAGE_SIZE # undef SQLITE_DEFAULT_PAGE_SIZE |