/ Check-in [e979e2cc]
Login

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

Overview
Comment:Initialize variables in the fts5 integrity-check code to avoid compiler warnings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e979e2cccac257ad554803e6a1103558b0f159d8
User & Date: dan 2015-10-20 15:49:02
Context
2015-10-20
19:55
Fix #line directives added to generated file fts5.c. check-in: 1f5f5804 user: dan tags: trunk
15:49
Initialize variables in the fts5 integrity-check code to avoid compiler warnings. check-in: e979e2cc user: dan tags: trunk
2015-10-19
20:49
Another optimization for fts5 prefix (and other) queries. check-in: 60a8bde0 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_storage.c.

   910    910         if( p->aTotalSize[i]!=aTotalSize[i] ) rc = FTS5_CORRUPT;
   911    911       }
   912    912     }
   913    913   
   914    914     /* Check that the %_docsize and %_content tables contain the expected
   915    915     ** number of rows.  */
   916    916     if( rc==SQLITE_OK && pConfig->eContent==FTS5_CONTENT_NORMAL ){
   917         -    i64 nRow;
          917  +    i64 nRow = 0;
   918    918       rc = fts5StorageCount(p, "content", &nRow);
   919    919       if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
   920    920     }
   921    921     if( rc==SQLITE_OK && pConfig->bColumnsize ){
   922         -    i64 nRow;
          922  +    i64 nRow = 0;
   923    923       rc = fts5StorageCount(p, "docsize", &nRow);
   924    924       if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
   925    925     }
   926    926   
   927    927     /* Pass the expected checksum down to the FTS index module. It will
   928    928     ** verify, amongst other things, that it matches the checksum generated by
   929    929     ** inspecting the index itself.  */