Check-in [72959c415e]
Not logged in
Overview

SHA1 Hash:72959c415eded017568be2cd0dced392dc23e1df
Date: 2008-11-19 22:44:23
User: drh
Comment:Fix a bug in the cluster creater. The bug prevents clusters from being created correctly when there are phantom artifacts.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/xfer.c from [7e978b3ecc] to [9bceefbd60].

@@ -430,11 +430,11 @@
     return;
   }
   blob_zero(&cluster);
   db_prepare(&q, "SELECT uuid FROM unclustered, blob"
                  " WHERE NOT EXISTS(SELECT 1 FROM phantom"
-                 "                   WHERE rid!=unclustered.rid)"
+                 "                   WHERE rid=unclustered.rid)"
                  "   AND unclustered.rid=blob.rid"
                  "   AND NOT EXISTS(SELECT 1 FROM shun WHERE uuid=blob.uuid)"
                  " ORDER BY 1");
   while( db_step(&q)==SQLITE_ROW ){
     blob_appendf(&cluster, "M %s\n", db_column_text(&q, 0));