Not logged in
Check-in [2145a12ce9]

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

Overview
Comment:Use query that is similar to other queries in function.
Timelines: family | ancestors | cluster-changes
Files: files | file ages | folders
SHA1:2145a12ce97300a21da6296f7c470185dfe2640c
User & Date: andybradford 2014-06-25 06:51:43
Context
2014-06-25
06:51
Use query that is similar to other queries in function. Leaf check-in: 2145a12ce9 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: 41b29f38fd user: andybradford tags: cluster-changes
Changes

Changes to src/xfer.c.

699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
        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);







|







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