/ Check-in [9e1e2fe2]
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 | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9e1e2fe2950bb96784413eae934314d95bce08e7
User & Date: drh 2012-04-04 13:58:19
Context
2012-04-04
16:56
Add the ".trace" option to the command-line shell. check-in: b9ac3d7e user: drh tags: trunk
13:58
Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. check-in: 9e1e2fe2 user: drh tags: trunk
13:43
In the multiplexor extension, improve the error logging when a chunk fails to open. check-in: 781453c6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_multiplex.c.

   325    325   
   326    326   #ifdef SQLITE_ENABLE_8_3_NAMES
   327    327     /* If JOURNAL_8_3_OFFSET is set to (say) 400, then any overflow files are 
   328    328     ** part of a database journal are named db.401, db.402, and so on. A 
   329    329     ** database may therefore not grow to larger than 400 chunks. Attempting
   330    330     ** to open chunk 401 indicates the database is full. */
   331    331     if( iChunk>=SQLITE_MULTIPLEX_JOURNAL_8_3_OFFSET ){
   332         -    sqlite3_log(SQLITE_FULL, "multiplexed chunk overflow: %s", zName);
          332  +    sqlite3_log(SQLITE_FULL, "multiplexed chunk overflow: %s", pGroup->zName);
   333    333       *rc = SQLITE_FULL;
   334    334       return 0;
   335    335     }
   336    336   #endif
   337    337   
   338    338     *rc = multiplexSubFilename(pGroup, iChunk);
   339    339     if( (*rc)==SQLITE_OK && (pSubOpen = pGroup->aReal[iChunk].p)==0 ){