]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/dbhash.rb
giuseppe.bilotta's patch:
[user/henk/code/ruby/rbot.git] / lib / rbot / dbhash.rb
index 0c09e17c3d06b8c079583bc9063491871fa1c800..5433bf90ef0291d8b910fc07cf66aa3b09440f69 100644 (file)
@@ -70,7 +70,8 @@ module Irc
       @bot = bot
       @key = key
       if @@env.nil?
-        @@env = BDB::Env.open("#{@bot.botclass}", BDB::INIT_TRANSACTION | BDB::CREATE |  BDB::RECOVER)
+        #@@env = BDB::Env.open("#{@bot.botclass}", BDB::INIT_TRANSACTION | BDB::CREATE |  BDB::RECOVER)
+        @@env = BDB::Env.open("#{@bot.botclass}", BDB::CREATE | BDB::INIT_MPOOL | BDB::RECOVER)
       end
       
       if absfilename && File.exist?(key)