summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-06 10:18:08 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-06 10:18:11 +0200
commit7444678a7d58f217f29096d88d057f6ed5ec0cd1 (patch)
treee73ccc8f35854a8d4bda0e4a2aa96903b22beed1 /lib/rbot
parent83229da8d25e044bca03f9ae879cadaf06acae3a (diff)
TokyoCabinet: upgrade from BDB using case-insensitive tree
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/registry/tc.rb2
1 files changed, 1 insertions, 1 deletions
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))