/ Check-in [0e6249cb]
Login

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

Overview
Comment:Update an assert() in test_journal.c to take the new "VACUUM INTO" functionality into account.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0e6249cb958a40ead0edf6e75a2c46e8657db3d358c5fe78a9dc0fa5ed7ad929
User & Date: dan 2019-02-06 20:12:00
Context
2019-02-06
20:49
Ensure all bytes of the PgHdr1 structure are initialized. This avoids a valgrind error when running corruptI.test. check-in: a505e34d user: dan tags: trunk
20:12
Update an assert() in test_journal.c to take the new "VACUUM INTO" functionality into account. check-in: 0e6249cb user: dan tags: trunk
19:42
Avoid attempting to delete a file while it is still open in walfault2.test. check-in: 9d54a63d user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_journal.c.

   556    556       }else{
   557    557         u32 pgno = (u32)(iOfst/p->nPagesize + 1);
   558    558         assert( (iAmt==1||iAmt==(int)p->nPagesize) &&
   559    559                 ((iOfst+iAmt)%p->nPagesize)==0 );
   560    560         /* The following assert() statements may fail if this layer is used
   561    561         ** with a connection in "PRAGMA synchronous=off" mode. If they
   562    562         ** fail with sync=normal or sync=full, this may indicate problem.  */
   563         -      assert( pgno<=p->nPage || p->nSync>0 );
          563  +      assert( p->nPage==0 || pgno<=p->nPage || p->nSync>0 );
   564    564         assert( pgno>p->nPage || sqlite3BitvecTest(p->pWritable, pgno) );
   565    565       }
   566    566     }
   567    567   
   568    568     rc = sqlite3OsWrite(p->pReal, zBuf, iAmt, iOfst);
   569    569     if( (p->flags&SQLITE_OPEN_MAIN_JOURNAL) && iAmt==12 ){
   570    570       jt_file *pMain = locateDatabaseHandle(p->zName, 0);