/ Check-in [b0f6b91f]
Login

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

Overview
Comment:Attempt to make the xDelete method of the unix VFS more robust on VxWorks.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b0f6b91f36b503d8ba8d5257bb194f8c1afb4833
User & Date: drh 2014-09-01 13:37:55
Context
2014-09-01
17:36
Add support for using separate worker threads to speed large sorts. The SQLITE_MAX_WORKER_THREADS and SQLITE_DEFAULT_WORKER_THREADS compile-time options and the SQLITE_LIMIT_WORKER_THREADS argument to sqlite3_limit() and the "PRAGMA threads=N" pragma are added. check-in: b1c0f0bc user: drh tags: trunk
13:37
Attempt to make the xDelete method of the unix VFS more robust on VxWorks. check-in: b0f6b91f user: drh tags: trunk
13:29
Micro-optimizations in sqlite3BtreeNext() and sqlite3BtreePrevious(). check-in: 839c7996 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  5881   5881   ){
  5882   5882     int rc = SQLITE_OK;
  5883   5883     UNUSED_PARAMETER(NotUsed);
  5884   5884     SimulateIOError(return SQLITE_IOERR_DELETE);
  5885   5885     if( osUnlink(zPath)==(-1) ){
  5886   5886       if( errno==ENOENT
  5887   5887   #if OS_VXWORKS
  5888         -        || errno==0x380003
         5888  +        || osAccess(zPath,0)!=0
  5889   5889   #endif
  5890   5890       ){
  5891   5891         rc = SQLITE_IOERR_DELETE_NOENT;
  5892   5892       }else{
  5893   5893         rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
  5894   5894       }
  5895   5895       return rc;