From d6c23172a93339bb77c06eab8bbdf63e29cadb28 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Mon, 29 Mar 2010 18:51:36 +0200 Subject: [PATCH] Main-Cache fixed --- lib/logan/inc/main.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/logan/inc/main.rb b/lib/logan/inc/main.rb index 44e4678..2c43e67 100644 --- a/lib/logan/inc/main.rb +++ b/lib/logan/inc/main.rb @@ -13,8 +13,8 @@ module LogAn::Inc $stderr.puts "Open Database \"sids.cnf\" #{db.inspect} (#{type.inspect})" type ||= 1+4 ret = env[ 'sids.cnf', db, :flags => flags || SBDB::RDONLY] - ret = AutoValueConvertHash.new ret if type&4 > 0 - ret = Cache.new ret, type&3 if type&3 > 0 + ret = LogAn::AutoValueConvertHash.new ret if type&4 > 0 + ret = LogAn::Cache.new ret, type&3 if type&3 > 0 ret end @@ -44,7 +44,7 @@ module LogAn::Inc # Set inc-config - stored in etc/inc.cnf @conf[:inc] = {} %w[hosts files fileparser].each {|key| @conf[:inc][key.to_sym] = config( @etc, key) } - @store = Cache.new AutoValueConvertHash.new( @etc[ 'sids.store', 'seeks', SBDB::Recno, SBDB::CREATE | SBDB::AUTO_COMMIT]), 3 + @store = LogAn::Cache.new LogAn::AutoValueConvertHash.new( @etc[ 'sids.store', 'seeks', SBDB::Recno, SBDB::CREATE | SBDB::AUTO_COMMIT]), 3 # Prepare Inc-server - create server LogAn::Inc::Fileparser::Base.logdb = @logs LogAn::Inc::Fileparser::Base.store = @store