Fossil

Check-in [4d1ef64e]
Login

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

Overview
Comment:Fix an uninitialized variable in the graph generator - error inserted by the previous checkin.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4d1ef64ee89ba2ce7ffd0d1f51c299e5bbdfebc6
User & Date: drh 2010-06-17 02:01:29
Context
2010-06-21
15:08
Fix a typo in the "branching.wiki" document. check-in: 83d6065c user: drh tags: trunk
2010-06-17
02:01
Fix an uninitialized variable in the graph generator - error inserted by the previous checkin. check-in: 4d1ef64e user: drh tags: trunk
01:37
Update to the latest version of SQLite - one that includes the fix for the corruption bug associated with the file-size in byte 28 of the database header. Also fix a bug in the graph generator, and change an index to help timeline run faster for branch queries. check-in: 5129d32a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/graph.c.

287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
      if( i==0 ){
        if( pRow->zBranch!=zTrunk ) continue;
      }else {
        if( pRow->iRail>=0 ) continue;
      }
      if( pRow->nParent==0 || hashFind(p,pRow->aParent[0])==0 ){
        if( omitDescenders ){
          pRow->iRail = findFreeRail(p, pRow->idx, pRow->idx, inUse, 0);
        }else{
          pRow->iRail = ++p->mxRail;
        }
        mask = 1<<(pRow->iRail);
        if( omitDescenders ){
          if( pRow->pNext ) pRow->pNext->railInUse |= mask;
          for(pDesc=pRow; pDesc; pDesc=pDesc->pPrev){







|







287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
      if( i==0 ){
        if( pRow->zBranch!=zTrunk ) continue;
      }else {
        if( pRow->iRail>=0 ) continue;
      }
      if( pRow->nParent==0 || hashFind(p,pRow->aParent[0])==0 ){
        if( omitDescenders ){
          pRow->iRail = findFreeRail(p, pRow->idx, pRow->idx, 0, 0);
        }else{
          pRow->iRail = ++p->mxRail;
        }
        mask = 1<<(pRow->iRail);
        if( omitDescenders ){
          if( pRow->pNext ) pRow->pNext->railInUse |= mask;
          for(pDesc=pRow; pDesc; pDesc=pDesc->pPrev){