Fossil SCM

Use query that is similar to other queries in function.

andybradford 2014-06-25 06:51 cluster-changes
Commit 2145a12ce97300a21da6296f7c470185dfe2640c
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -701,11 +701,11 @@
701701
}
702702
}
703703
db_finalize(&q);
704704
db_multi_exec(
705705
"DELETE FROM unclustered WHERE rid NOT IN (0 %s)"
706
- " AND rid NOT IN (SELECT rid FROM phantom)",
706
+ " AND NOT EXISTS(SELECT 1 FROM phantom WHERE rid=unclustered.rid)",
707707
blob_str(&deleteWhere)
708708
);
709709
blob_reset(&deleteWhere);
710710
if( nRow>0 ){
711711
md5sum_blob(&cluster, &cksum);
712712
--- src/xfer.c
+++ src/xfer.c
@@ -701,11 +701,11 @@
701 }
702 }
703 db_finalize(&q);
704 db_multi_exec(
705 "DELETE FROM unclustered WHERE rid NOT IN (0 %s)"
706 " AND rid NOT IN (SELECT rid FROM phantom)",
707 blob_str(&deleteWhere)
708 );
709 blob_reset(&deleteWhere);
710 if( nRow>0 ){
711 md5sum_blob(&cluster, &cksum);
712
--- src/xfer.c
+++ src/xfer.c
@@ -701,11 +701,11 @@
701 }
702 }
703 db_finalize(&q);
704 db_multi_exec(
705 "DELETE FROM unclustered WHERE rid NOT IN (0 %s)"
706 " AND NOT EXISTS(SELECT 1 FROM phantom WHERE rid=unclustered.rid)",
707 blob_str(&deleteWhere)
708 );
709 blob_reset(&deleteWhere);
710 if( nRow>0 ){
711 md5sum_blob(&cluster, &cksum);
712

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button