Changeset 246

Show
Ignore:
Timestamp:
04/24/08 09:42:53 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Security measure against Ferret::Store::Lock::LockError?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/yet_another_index_structure/lib/picolena/templates/app/models/indexer.rb

    r244 r246  
    2929       
    3030      indexing_list_chunks=indexing_list.in_transposed_slices(threads_number) 
     31       
     32      # It initializes an IndexWriter before launching multithreaded 
     33      # indexing. Otherwise, two threads could try to instantiate 
     34      # an IndexWriter at the same time, and get a 
     35      #  Ferret::Store::Lock::LockError 
     36      writer 
    3137       
    3238      indexing_list_chunks.each_with_thread{|chunk|