Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Reduce the maximum supported sector size to 64KiB. (CVS 6970) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8e1e0ba292150f8968e5295e8ba9cd73 |
User & Date: | drh 2009-08-10 17:48:57 |
Context
2009-08-11
| ||
05:50 | Instead of adding SQLITE_API macros sqlite3.h while creating sqlite3.c, add them as part of generating the sqlite3.h target, while copying from sqlite.h.in to sqlite3.h. This fixes a build problem that was causing multiple SQLITE_API macros to be added to a single line of sqlite3.h, and the problem cited by #4016. (CVS 6971) check-in: 7f481074 user: danielk1977 tags: trunk | |
2009-08-10
| ||
17:48 | Reduce the maximum supported sector size to 64KiB. (CVS 6970) check-in: 8e1e0ba2 user: drh tags: trunk | |
15:16 | Version 3.6.17 (CVS 6969) check-in: 36650102 user: drh tags: trunk, release | |
Changes
Changes to src/pager.c.
14 14 ** The pager is used to access a database disk file. It implements 15 15 ** atomic commit and rollback through the use of a journal file that 16 16 ** is separate from the database file. The pager also implements file 17 17 ** locking to prevent two processes from writing the same database 18 18 ** file simultaneously, or one process from reading the database while 19 19 ** another is writing. 20 20 ** 21 -** @(#) $Id: pager.c,v 1.628 2009/07/27 14:15:44 danielk1977 Exp $ 21 +** @(#) $Id: pager.c,v 1.629 2009/08/10 17:48:57 drh Exp $ 22 22 */ 23 23 #ifndef SQLITE_OMIT_DISKIO 24 24 #include "sqliteInt.h" 25 25 26 26 /* 27 27 ** Macros for troubleshooting. Normally turned off 28 28 */ ................................................................................ 110 110 if( (O=(char*)(P->xCodec(P->pCodec,D,N,X)))==0 ){ E; } 111 111 #else 112 112 # define CODEC1(P,D,N,X,E) /* NO-OP */ 113 113 # define CODEC2(P,D,N,X,E,O) O=(char*)D 114 114 #endif 115 115 116 116 /* 117 -** The maximum allowed sector size. 16MB. If the xSectorsize() method 117 +** The maximum allowed sector size. 64KiB. If the xSectorsize() method 118 118 ** returns a value larger than this, then MAX_SECTOR_SIZE is used instead. 119 119 ** This could conceivably cause corruption following a power failure on 120 120 ** such a system. This is currently an undocumented limit. 121 121 */ 122 -#define MAX_SECTOR_SIZE 0x0100000 122 +#define MAX_SECTOR_SIZE 0x10000 123 123 124 124 /* 125 125 ** An instance of the following structure is allocated for each active 126 126 ** savepoint and statement transaction in the system. All such structures 127 127 ** are stored in the Pager.aSavepoint[] array, which is allocated and 128 128 ** resized using sqlite3Realloc(). 129 129 **