Fossil

Check-in [41b29f38]
Login

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

Overview
Comment:Don't delete phantom artifacts from unclustered table. Potential fix for missing sync content as reported on ML.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | cluster-changes
Files: files | file ages | folders
SHA1: 41b29f38fdb4e5ed9e0313648160aca055c4eca0
User & Date: andybradford 2014-06-24 06:19:13
Context
2014-06-25
06:51
Use query that is similar to other queries in function. check-in: 2145a12c user: andybradford tags: cluster-changes
2014-06-24
06:19
Don't delete phantom artifacts from unclustered table. Potential fix for missing sync content as reported on ML. check-in: 41b29f38 user: andybradford tags: cluster-changes
2014-06-23
09:35
Make daysOfWeek a const table. c/char const/const char/ check-in: 1d306725 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xfer.c.

698
699
700
701
702
703
704
705

706
707
708
709
710
711
712
        nUncl -= nRow;
        nRow = 0;
        blob_appendf(&deleteWhere, ",%d", rid);
      }
    }
    db_finalize(&q);
    db_multi_exec(
      "DELETE FROM unclustered WHERE rid NOT IN (0 %s)",

      blob_str(&deleteWhere)
    );
    blob_reset(&deleteWhere);
    if( nRow>0 ){
      md5sum_blob(&cluster, &cksum);
      blob_appendf(&cluster, "Z %b\n", &cksum);
      blob_reset(&cksum);







|
>







698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
        nUncl -= nRow;
        nRow = 0;
        blob_appendf(&deleteWhere, ",%d", rid);
      }
    }
    db_finalize(&q);
    db_multi_exec(
      "DELETE FROM unclustered WHERE rid NOT IN (0 %s)"
      "   AND rid NOT IN (SELECT rid FROM phantom)",
      blob_str(&deleteWhere)
    );
    blob_reset(&deleteWhere);
    if( nRow>0 ){
      md5sum_blob(&cluster, &cksum);
      blob_appendf(&cluster, "Z %b\n", &cksum);
      blob_reset(&cksum);