/ Check-in [6fb7cfc2]
Login

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

Overview
Comment:In the multiplexor, close auxiliary files before deleting them when doing a truncate.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6fb7cfc2efb32dd5c8921a90b853390bc44d4794
User & Date: drh 2011-07-23 13:11:02
Context
2011-07-23
13:54
Merge the winAccess retry logic from the anti-antivirus branch into the trunk. check-in: 08d0e879 user: drh tags: trunk
13:11
In the multiplexor, close auxiliary files before deleting them when doing a truncate. check-in: 6fb7cfc2 user: drh tags: trunk
2011-07-22
11:23
Also add the sqlite3-all.c target to the MSVC makefile. check-in: 8ce2b74a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_multiplex.c.

   410    410   static void multiplexSubClose(
   411    411     multiplexGroup *pGroup,
   412    412     int iChunk,
   413    413     sqlite3_vfs *pOrigVfs
   414    414   ){
   415    415     sqlite3_file *pSubOpen = pGroup->aReal[iChunk].p;
   416    416     if( pSubOpen ){
   417         -    if( pOrigVfs ) pOrigVfs->xDelete(pOrigVfs, pGroup->aReal[iChunk].z, 0);
   418    417       pSubOpen->pMethods->xClose(pSubOpen);
          418  +    if( pOrigVfs ) pOrigVfs->xDelete(pOrigVfs, pGroup->aReal[iChunk].z, 0);
   419    419       sqlite3_free(pGroup->aReal[iChunk].p);
   420    420     }
   421    421     sqlite3_free(pGroup->aReal[iChunk].z);
   422    422     memset(&pGroup->aReal[iChunk], 0, sizeof(pGroup->aReal[iChunk]));
   423    423   }
   424    424   
   425    425   /*