Diff
Not logged in

Differences From:

File src/content.c part of check-in [243e02bfbd] - Improvements to cloning performance. by drh on 2008-05-18 15:51:05. [view]

To:

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]

@@ -495,8 +495,11 @@
   static Stmt s1, s2;
 
   assert( g.repositoryOpen );
   db_begin_transaction();
+  if( uuid_is_shunned(zUuid) ){
+    return 0;
+  }
   db_static_prepare(&s1,
     "INSERT INTO blob(rcvid,size,uuid,content)"
     "VALUES(0,-1,:uuid,NULL)"
   );