/ Check-in [ca47da2a]
Login

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

Overview
Comment:Change to test instrumentation of os_unix.c: Regard IO errors that occur within SQLITE_FCNTL_SIZE_HINT requests as benign. (This check-in was intended for trunk and went onto the branch accidentally.)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | pager-blockalloc
Files: files | file ages | folders
SHA1: ca47da2a1f6e6d221470e7f02b129fc21c288d7b
User & Date: dan 2011-08-23 05:10:39
Original Comment: Change to test instrumentation of os_unix.c: Regard IO errors that occur within SQLITE_FCNTL_SIZE_HINT requests as benign.
Context
2011-08-23
12:50
Merge the PAGECACHE_BLOCKALLOC changes into trunk. check-in: 768c1846 user: drh tags: trunk
05:10
Change to test instrumentation of os_unix.c: Regard IO errors that occur within SQLITE_FCNTL_SIZE_HINT requests as benign. (This check-in was intended for trunk and went onto the branch accidentally.) Closed-Leaf check-in: ca47da2a user: dan tags: pager-blockalloc
2011-08-22
14:55
Modify test cases so that veryquick.test passes with PAGECACHE_BLOCKALLOC defined. check-in: c6100070 user: dan tags: pager-blockalloc
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  3506   3506         return SQLITE_OK;
  3507   3507       }
  3508   3508       case SQLITE_FCNTL_CHUNK_SIZE: {
  3509   3509         pFile->szChunk = *(int *)pArg;
  3510   3510         return SQLITE_OK;
  3511   3511       }
  3512   3512       case SQLITE_FCNTL_SIZE_HINT: {
  3513         -      return fcntlSizeHint(pFile, *(i64 *)pArg);
         3513  +      int rc;
         3514  +      SimulateIOErrorBenign(1);
         3515  +      rc = fcntlSizeHint(pFile, *(i64 *)pArg);
         3516  +      SimulateIOErrorBenign(0);
         3517  +      return rc;
  3514   3518       }
  3515   3519       case SQLITE_FCNTL_PERSIST_WAL: {
  3516   3520         int bPersist = *(int*)pArg;
  3517   3521         if( bPersist<0 ){
  3518   3522           *(int*)pArg = (pFile->ctrlFlags & UNIXFILE_PERSIST_WAL)!=0;
  3519   3523         }else if( bPersist==0 ){
  3520   3524           pFile->ctrlFlags &= ~UNIXFILE_PERSIST_WAL;