aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-09-13 16:19:43 +0000
committerfrancis <francis>2008-09-13 16:19:43 +0000
commit904e3bbed9ad8e28de46ac298ec39f65ecf4c893 (patch)
tree1b5cdb48a77d50704f086e0adbcb408c0d942b31
parent8aee8f48733069bd5413984a1f23509dfc592904 (diff)
This is troublesome - Donncha rightly didn't want to always reopen as was
wasting memory, but we need to reopen when modifying the database.
-rw-r--r--vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
index 8670830bc..9cf4e24a0 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -113,7 +113,8 @@ module ActsAsXapian
raise "acts_as_xapian hasn't been called in any models" if @@init_values.empty?
# if DB is not nil, then we're already initialised, so don't do it again
- return unless @@db.nil?
+ # XXX we need to reopen!
+ #return unless @@db.nil?
prepare_environment