Diff
Not logged in

Differences From:

File src/content.c part of check-in [a48474bc75] - Improvements to the shunning algorithm. Add the shun page and an opportunity to shun or unshun artifacts in the artifact viewer. by drh on 2008-05-29 01:58:15. [view]

To:

File src/content.c part of check-in [1f8d2501b0] - Make sure new artifacts are entered into the unclustered table. Ticket 4b72e10dca. by drh on 2008-07-23 20:57:55. [view]

@@ -491,9 +491,9 @@
 ** Create a new phantom with the given UUID and return its artifact ID.
 */
 int content_new(const char *zUuid){
   int rid;
-  static Stmt s1, s2;
+  static Stmt s1, s2, s3;
 
   assert( g.repositoryOpen );
   db_begin_transaction();
   if( uuid_is_shunned(zUuid) ){
@@ -510,8 +510,13 @@
     "INSERT INTO phantom VALUES(:rid)"
   );
   db_bind_int(&s2, ":rid", rid);
   db_exec(&s2);
+  db_static_prepare(&s3,
+    "INSERT INTO unclustered VALUES(:rid)"
+  );
+  db_bind_int(&s3, ":rid", rid);
+  db_exec(&s3);
   bag_insert(&contentCache.missing, rid);
   db_end_transaction(0);
   return rid;
 }