app/indexing/kithe/indexable/thread_settings.rb in kithe-2.1.0 vs app/indexing/kithe/indexable/thread_settings.rb in kithe-2.2.0

- old
+ new

@@ -95,18 +95,20 @@ # settings. def pop # only call on-finish if we have a writer, batch writers are lazily # created and maybe we never created one if @writer + # if we created the writer ourselves locally and nobody + # specified an on_finish, close our locally-created writer. on_finish = if @local_writer && @on_finish.nil? proc {|writer| writer.close } else @on_finish end on_finish.call(@writer) if on_finish end - Thread.current[THREAD_CURRENT_KEY] = @original_thread_current_settings + Thread.current[THREAD_CURRENT_KEY] = @original_settings end private # "Null object" representing no current settings set.