diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-13 07:50:56 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-13 07:50:56 +0000 |
commit | b45f90a6f303dc495bd6897717dfb1be0cc7425a (patch) | |
tree | 9c0346d79f44d60cbf14be44a23590f3346691f8 | |
parent | 9561130117e9f73c508d43ae4b154ce1d4dc1958 (diff) |
fix typo
-rw-r--r-- | vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb | 4 |
1 files changed, 2 insertions, 2 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 1c7ff97b0..98ec93a14 100644 --- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb +++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb @@ -292,14 +292,14 @@ module ActsAsXapian rescue IOError => e if e.message =~ /DatabaseModifiedError: / # This should be a transient error, so back off and try again, up to a point - if tries > MAX_TRIES + if tries > MSET_MAX_TRIES raise "Received DatabaseModifiedError from Xapian even after retrying #{MAX_TRIES} times" else sleep delay end tries += 1 delay *= 2 - delay = MAX_DELAY if delay > MAX_DELAY + delay = MSET_MAX_DELAY if delay > MSET_MAX_DELAY @@db.reopen() retry |