diff options
author | francis <francis> | 2008-09-13 16:19:43 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-13 16:19:43 +0000 |
commit | 904e3bbed9ad8e28de46ac298ec39f65ecf4c893 (patch) | |
tree | 1b5cdb48a77d50704f086e0adbcb408c0d942b31 | |
parent | 8aee8f48733069bd5413984a1f23509dfc592904 (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.rb | 3 |
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 |