mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Reduce the maximum supported sector size to 64KiB. (CVS 6970)
FossilOrigin-Name: 8e1e0ba292150f8968e5295e8ba9cd7360b6a64b
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.628 2009/07/27 14:15:44 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.629 2009/08/10 17:48:57 drh Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -114,12 +114,12 @@ int sqlite3PagerTrace=1; /* True to enable tracing */
|
||||
#endif
|
||||
|
||||
/*
|
||||
** The maximum allowed sector size. 16MB. If the xSectorsize() method
|
||||
** The maximum allowed sector size. 64KiB. If the xSectorsize() method
|
||||
** returns a value larger than this, then MAX_SECTOR_SIZE is used instead.
|
||||
** This could conceivably cause corruption following a power failure on
|
||||
** such a system. This is currently an undocumented limit.
|
||||
*/
|
||||
#define MAX_SECTOR_SIZE 0x0100000
|
||||
#define MAX_SECTOR_SIZE 0x10000
|
||||
|
||||
/*
|
||||
** An instance of the following structure is allocated for each active
|
||||
|
Reference in New Issue
Block a user