From 087b49a36ccfc1af847bad0baca4e41693c36a30 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 23 Sep 2010 22:31:19 +0200 Subject: [PATCH] TokyoCabinet: fix extension in 0.9.9 upgrade path --- lib/rbot/registry/tc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rbot/registry/tc.rb b/lib/rbot/registry/tc.rb index 2c1198ec..b1b811f7 100644 --- a/lib/rbot/registry/tc.rb +++ b/lib/rbot/registry/tc.rb @@ -235,8 +235,8 @@ class Bot } end unless dbs.has_key?(prefix) - log _("creating db #{@bot.botclass}/registry/#{prefix}.db") - dbs[prefix] = TokyoCabinet::CIBDB.open("#{@bot.botclass}/registry/#{prefix}.db", + log _("creating db #{@bot.botclass}/registry/#{prefix}.tdb") + dbs[prefix] = TokyoCabinet::CIBDB.open("#{@bot.botclass}/registry/#{prefix}.tdb", TokyoCabinet::CIBDB::OREADER | TokyoCabinet::CIBDB::OCREAT | TokyoCabinet::CIBDB::OWRITER) end dbs[prefix][key] = v -- 2.39.2