]> git.cworth.org Git - sup/commitdiff
disable extra (slow) sanity check in Index adding
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 26 Apr 2009 22:15:01 +0000 (18:15 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 26 Apr 2009 22:20:15 +0000 (18:20 -0400)
lib/sup/index.rb

index 838d601347f1f86ffba21ac72e37c3e191ac95ba..29b26d38b8b17b66306c79224f375b97c9627e9a 100644 (file)
@@ -261,15 +261,14 @@ EOS
       :refs => (entry[:refs] || (m.refs + m.replytos).uniq.join(" ")),
     }
 
-    @index_mutex.synchronize  do
+    @index_mutex.synchronize do
       @index.delete docid if docid
       @index.add_document d
     end
 
-    docid, entry = load_entry_for_id m.id
-    ## this hasn't been triggered in a long time. TODO: decide whether it's still a problem.
-    raise "just added message #{m.id.inspect} but couldn't find it in a search" unless docid
-    true
+    ## this hasn't been triggered in a long time.
+    ## docid, entry = load_entry_for_id m.id
+    ## raise "just added message #{m.id.inspect} but couldn't find it in a search" unless docid
   end
 
   def save_index fn=File.join(@dir, "ferret")