SQLite4
Check-in [676da8516d]
Not logged in

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

Overview
Comment:Turn off LSM_CONFIG_MMAP automatically in compressed database mode.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | compression-hooks
Files: files | file ages | folders
SHA1: 676da8516d7613efd889c51a54a43e9d13832e91
User & Date: dan 2012-10-28 11:34:39
Context
2012-10-28
11:38
Merge compression-hooks branch with trunk. check-in: a701b281e9 user: dan tags: trunk
11:34
Turn off LSM_CONFIG_MMAP automatically in compressed database mode. Leaf check-in: 676da8516d user: dan tags: compression-hooks
11:28
Enhance the file-format to allow padding records smaller than 6 bytes in length. check-in: 2ba0368e76 user: dan tags: compression-hooks
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/lsm_file.c.

   491    491       pFS->zDb = (char *)&pFS[1];
   492    492       pFS->zLog = &pFS->zDb[nDb+1];
   493    493       pFS->nPagesize = LSM_DFLT_PAGE_SIZE;
   494    494       pFS->nBlocksize = LSM_DFLT_BLOCK_SIZE;
   495    495       pFS->nMetasize = 4 * 1024;
   496    496       pFS->pDb = pDb;
   497    497       pFS->pEnv = pDb->pEnv;
   498         -    pFS->bUseMmap = pDb->bMmap;
   499    498       if( pDb->compress.xCompress ){
   500    499         pFS->pCompress = &pDb->compress;
          500  +    }else{
          501  +      pFS->bUseMmap = pDb->bMmap;
   501    502       }
   502    503   
   503    504       /* Make a copy of the database and log file names. */
   504    505       memcpy(pFS->zDb, zDb, nDb+1);
   505    506       memcpy(pFS->zLog, zDb, nDb);
   506    507       memcpy(&pFS->zLog[nDb], "-log", 5);
   507    508