/ Check-in [5bf6442b]
Login

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

Overview
Comment:Fix an incorrect VFS version number check in the threadtest3.c test program.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5bf6442bec83977006bc5049adcdbd4dd39369fe
User & Date: drh 2016-01-19 21:36:26
Context
2016-01-20
01:32
Very small simplification to the btree balancer. check-in: f421adf5 user: drh tags: trunk
2016-01-19
21:36
Fix an incorrect VFS version number check in the threadtest3.c test program. check-in: 5bf6442b user: drh tags: trunk
17:54
Fix two harmless compiler warnings about comparisons of dangling pointers. check-in: 86944f19 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/threadtest3.c.

   876    876   */
   877    877   static double timelimit = 0.0;
   878    878   
   879    879   static double currentTime(void){
   880    880     double t;
   881    881     static sqlite3_vfs *pTimelimitVfs = 0;
   882    882     if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0);
   883         -  if( pTimelimitVfs->iVersion>=1 && pTimelimitVfs->xCurrentTimeInt64!=0 ){
          883  +  if( pTimelimitVfs->iVersion>=2 && pTimelimitVfs->xCurrentTimeInt64!=0 ){
   884    884       sqlite3_int64 tm;
   885    885       pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm);
   886    886       t = tm/86400000.0;
   887    887     }else{
   888    888       pTimelimitVfs->xCurrentTime(pTimelimitVfs, &t);
   889    889     }
   890    890     return t;