/ Check-in [627eff32]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | nx-devkit
Files: files | file ages | folders
SHA1: 627eff32a23ec676f7e87f6904981b3804e0e1f0
User & Date: drh 2012-04-04 13:51:22
Context
2012-04-04
13:51
Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. Leaf check-in: 627eff32 user: drh tags: nx-devkit
13:47
In the multiplexor extension, improve the error logging when a chunk fails to open. check-in: e6806f0d user: drh tags: nx-devkit
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_multiplex.c.

   294    294   
   295    295   #ifdef SQLITE_ENABLE_8_3_NAMES
   296    296     /* If JOURNAL_8_3_OFFSET is set to (say) 400, then any overflow files are 
   297    297     ** part of a database journal are named db.401, db.402, and so on. A 
   298    298     ** database may therefore not grow to larger than 400 chunks. Attempting
   299    299     ** to open chunk 401 indicates the database is full. */
   300    300     if( iChunk>=SQLITE_MULTIPLEX_JOURNAL_8_3_OFFSET ){
   301         -    sqlite3_log(SQLITE_FULL, "multiplexed chunk overflow: %s", zName);
          301  +    sqlite3_log(SQLITE_FULL, "multiplexed chunk overflow: %s", pGroup->zName);
   302    302       *rc = SQLITE_FULL;
   303    303       return 0;
   304    304     }
   305    305   #endif
   306    306   
   307    307     *rc = multiplexSubFilename(pGroup, iChunk);
   308    308     if( (*rc)==SQLITE_OK && (pSubOpen = pGroup->aReal[iChunk].p)==0 ){