/ Check-in [a1040f03]
Login

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

Overview
Comment:Ensure that a checkpoint does not use an out-of-date mapping.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental-mmap
Files: files | file ages | folders
SHA1: a1040f0397d57855500926494c978623286ddc77
User & Date: dan 2013-04-01 16:56:41
Context
2013-04-01
17:22
Add xFetch and xUnfetch methods to the os_win.c VFS. check-in: a1653a25 user: drh tags: experimental-mmap
16:56
Ensure that a checkpoint does not use an out-of-date mapping. check-in: a1040f03 user: dan tags: experimental-mmap
14:35
Fix a typo in a log message in wal.c. check-in: 83fc48d1 user: dan tags: experimental-mmap
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/wal.c.

  2952   2952         rc = SQLITE_OK;
  2953   2953       }
  2954   2954     }
  2955   2955   
  2956   2956     /* Read the wal-index header. */
  2957   2957     if( rc==SQLITE_OK ){
  2958   2958       rc = walIndexReadHdr(pWal, &isChanged);
         2959  +    if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
         2960  +      sqlite3OsUnfetch(pWal->pDbFd, 0, 0);
         2961  +    }
  2959   2962     }
  2960   2963   
  2961   2964     /* Copy data from the log to the database file. */
  2962   2965     if( rc==SQLITE_OK ){
  2963   2966       if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
  2964   2967         rc = SQLITE_CORRUPT_BKPT;
  2965   2968       }else{