Skip to content

Commit

Permalink
replace usage of no more existing synchrolock method
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Jun 30, 2010
1 parent d40734d commit 750d904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acts_as_ferret.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: !ruby/object:Gem::Version
- 0
- 4
- 5
version: 0.4.5
version: 0.4.6
platform: ruby
authors:
- Jens Kraemer
Expand Down
2 changes: 1 addition & 1 deletion lib/ferret_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def bulk_index(model, ids, options = {})
# use for this document (which may be nil).
def update_batch(document_analyzer_pairs)
ids = document_analyzer_pairs.collect {|da| da.first[@id_field] }
@dir.synchrolock do
@dir.synchronize do
batch_delete(ids)
ensure_writer_open()
document_analyzer_pairs.each do |doc, analyzer|
Expand Down

0 comments on commit 750d904

Please sign in to comment.