summaryrefslogtreecommitdiff
path: root/lib/rbot/registry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/registry.rb')
-rw-r--r--lib/rbot/registry.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/registry.rb b/lib/rbot/registry.rb
index 6c18df21..799e69ee 100644
--- a/lib/rbot/registry.rb
+++ b/lib/rbot/registry.rb
@@ -73,7 +73,9 @@ class Registry
# (the configured one) accessor implementation, we can just assume
# it to be the correct accessor to use.
cls = AbstractAccessor.get_impl.first
- cls.new(File.join(path, 'registry_' + @format, filename.downcase))
+ db = cls.new(File.join(path, 'registry_' + @format, filename.downcase))
+ db.optimize
+ db
end
# Helper method that will return a list of supported registry formats.