From: Giuseppe Bilotta Date: Thu, 23 Sep 2010 20:31:19 +0000 (+0200) Subject: TokyoCabinet: fix extension in 0.9.9 upgrade path X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=087b49a36ccfc1af847bad0baca4e41693c36a30;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git TokyoCabinet: fix extension in 0.9.9 upgrade path --- 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