/ Check-in [6484fb5a]
Login

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

Overview
Comment:Avoid an unnecessary initialization of the szFile field of unixFile in the unix VFS.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6484fb5a25c2a0e5d26694285a4908a22c67ba17
User & Date: drh 2014-06-09 20:39:03
Context
2014-06-12
15:46
Simplify the estLog() routine. check-in: 6c68d758 user: drh tags: trunk
2014-06-10
20:18
Proposed change to the fix for ticket [1c69be2dafc28b] such that legacy applications that were exploiting the older buggy behavior in SQLite continue to work. Leaf check-in: 401a0ca3 user: drh tags: group-by-name-resolution
2014-06-09
20:39
Avoid an unnecessary initialization of the szFile field of unixFile in the unix VFS. check-in: 6484fb5a user: drh tags: trunk
20:24
Enhance the unix VFS so that it keeps track of the size of unlinked files internally and thus avoids the need to call fstat() on those files, since fstat() does not work reliably on unlinked files on some implementations of FuseFS. check-in: 10707d35 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/os_unix.c.

  5790   5790   
  5791   5791     if( p->pUnused ){
  5792   5792       p->pUnused->fd = fd;
  5793   5793       p->pUnused->flags = flags;
  5794   5794     }
  5795   5795   
  5796   5796     if( isDelete ){
  5797         -    p->szFile = 0;
         5797  +    assert( p->szFile==0 );
  5798   5798   #if OS_VXWORKS
  5799   5799       zPath = zName;
  5800   5800   #else
  5801   5801       osUnlink(zName);
  5802   5802   #endif
  5803   5803     }
  5804   5804   #if SQLITE_ENABLE_LOCKING_STYLE