From 0fca4a27e0d33baafb4f8ea2f56ef31d3d22c98b Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Wed, 31 Mar 2010 00:41:27 +0200 Subject: [PATCH] DB#initialize: @txn initialized (nil). --- lib/sbdb/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index 260cf8e..f840925 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -78,7 +78,7 @@ module SBDB @home, @db = opts[:env], opts[:env] ? opts[:env].bdb_object.db : Bdb::Db.new opts[:type] = TYPES.index(self.class) || UNKNOWN @db.re_len = opts[:re_len] if opts[:re_len] - txn = opts[:txn] + @txn, txn = nil, opts[:txn] # First is the global txn, second only for open. begin @db.open txn && txn.bdb_object, file, opts[:name], opts[:type], opts[:flags] || 0, opts[:mode] || 0 rescue Object