/ Check-in [6221cf4f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make the pager sector size configurable at compile-time. (CVS 3517)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6221cf4f52e79f53043b7c10daedf2755d8fb167
User & Date: drh 2006-11-23 11:58:44
Context
2006-11-23
11:59
Fix a typo in the OMIT_AUTORIZATION in expr.c. (CVS 3518) check-in: 3dea7fbe user: drh tags: trunk
11:58
Make the pager sector size configurable at compile-time. (CVS 3517) check-in: 6221cf4f user: drh tags: trunk
09:39
Add performance tests to the test suite. (CVS 3516) check-in: 270c745d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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.275 2006/11/06 21:20:26 drh Exp $
           21  +** @(#) $Id: pager.c,v 1.276 2006/11/23 11:58:44 drh Exp $
    22     22   */
    23     23   #ifndef SQLITE_OMIT_DISKIO
    24     24   #include "sqliteInt.h"
    25     25   #include "os.h"
    26     26   #include "pager.h"
    27     27   #include <assert.h>
    28     28   #include <string.h>
................................................................................
   346    346   #else
   347    347   # define MEMDB pPager->memDb
   348    348   #endif
   349    349   
   350    350   /*
   351    351   ** The default size of a disk sector
   352    352   */
   353         -#define PAGER_SECTOR_SIZE 512
          353  +#ifndef PAGER_SECTOR_SIZE
          354  +# define PAGER_SECTOR_SIZE 512
          355  +#endif
   354    356   
   355    357   /*
   356    358   ** Page number PAGER_MJ_PGNO is never used in an SQLite database (it is
   357    359   ** reserved for working around a windows/posix incompatibility). It is
   358    360   ** used in the journal to signify that the remainder of the journal file 
   359    361   ** is devoted to storing a master journal name - there are no more pages to
   360    362   ** roll back. See comments for function writeMasterJournal() for details.