Check-in [3fa7965c64]
Not logged in

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

Overview
Comment:Do not delete phantom artifacts from the unclustered table.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3fa7965c640d63c40f4adc2c0458f3dc1fe810fe
User & Date: drh 2014-07-22 22:26:50.708
Context
2014-07-23
04:23
Minor corrections to documentation. check-in: f1b148df7f user: andybradford tags: trunk
2014-07-22
23:26
Do not delete phantom artifacts from the unclustered table check-in: 49e41bf9b4 user: jan.nijtmans tags: branch-1.29
22:26
Do not delete phantom artifacts from the unclustered table. check-in: 3fa7965c64 user: drh tags: trunk
20:33
Add an alternative comment printing algorithm, disabled by default, which permits the pre-existing comment formatting to be preserved. check-in: b6c9d35b1c user: mistachkin tags: trunk
08:03
Receive updates from trunk. Closed-Leaf check-in: 5c6891b2ab user: andybradford tags: cluster-changes
Changes
Unified Diff 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 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);