commit 35436de2f4b9e49d47b9c5a9ad0d0d23b5c2cbec
parent 3ad5a89a038be9d2cce6a8fc3449b26aa249254e
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Fri, 1 Jan 2010 13:44:34 -0800
xapian: respect :skip_killed in each_message_in_thread_for
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
@@ -127,7 +127,7 @@ EOS
while not queue.empty?
thread_id = queue.pop
next if seen_threads.member? thread_id
- return false if thread_killed? thread_id
+ return false if opts[:skip_killed] && thread_killed?(thread_id)
seen_threads << thread_id
docs = term_docids(mkterm(:thread, thread_id)).map { |x| @xapian.document x }
docs.each do |doc|