Hi All, I've tried the xapian conversion again and am now back in ferret land. In this case, I don't think the issues are xapian related...it seems to the labels that are biting me again.
I get exceptions with non-Symbol labels being passed around again. To finish the import of my ferret dumpfile, I had to do the following: --snip-- diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb index 1395601..4b3b022 100644 --- a/lib/sup/xapian_index.rb +++ b/lib/sup/xapian_index.rb @@ -111,7 +111,7 @@ class XapianIndex < BaseIndex :replytos => (entry[:replytos] || m.replytos), } - labels.each { |l| LabelManager << l } + labels.each { |l| LabelManager << l.to_sym } --snip-- This got me to the point where I could fire up sup with SUP_INDEX=xapian, but the initial poll caused the attached exception. I wonder if LabelManager should simply call .to_sym (.intern) on everything passed to it? That's a big hammer, I realize...maybe .to_sym/.intern in cases where the unexpected object is a String? Thoughts? Thanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu Contact me to arrange for a CAcert assurance meeting.
--- ArgumentError from thread: load threads for thread-index-mode expecting a symbol ./sup/label.rb:64:in `<<' ./sup/util.rb:520:in `send' ./sup/util.rb:520:in `method_missing' ./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads' /usr/lib/ruby/1.8/set.rb:189:in `each' /usr/lib/ruby/1.8/set.rb:189:in `each_key' /usr/lib/ruby/1.8/set.rb:189:in `each' ./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads' ./sup/modes/thread-index-mode.rb:635:in `each' ./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads' (eval):12:in `load_n_threads' ./sup/modes/thread-index-mode.rb:609:in `load_n_threads_background' ./sup.rb:77:in `reporting_thread' ./sup.rb:75:in `initialize' ./sup.rb:75:in `new' ./sup.rb:75:in `reporting_thread' ./sup/modes/thread-index-mode.rb:608:in `load_n_threads_background' ./sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads' (eval):12:in `load_threads' ../bin/sup:196
signature.asc
Description: PGP signature
_______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk