From 7444678a7d58f217f29096d88d057f6ed5ec0cd1 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 6 Oct 2010 10:18:08 +0200 Subject: TokyoCabinet: upgrade from BDB using case-insensitive tree --- lib/rbot/registry/tc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot/registry/tc.rb') diff --git a/lib/rbot/registry/tc.rb b/lib/rbot/registry/tc.rb index 9f410484..b735927c 100644 --- a/lib/rbot/registry/tc.rb +++ b/lib/rbot/registry/tc.rb @@ -131,7 +131,7 @@ module Irc if File.exists? oldbasename and defined? BDB # upgrading warning "Upgrading old database #{oldbasename}..." - oldb = ::BDB::Btree.open(oldbasename, nil, "r", 0600) + oldb = ::BDB::CIBtree.open(oldbasename, nil, "r", 0600) oldb.each_key do |k| @db.outlist k @db.putlist k, (oldb.duplicates(k, false)) -- cgit v1.2.3