From 9fb86ef146ba500c83e500128600a785dd6301ac Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Mon, 29 Mar 2010 18:46:39 +0200 Subject: [PATCH] LogAn::Inc::Main: uses new SBDB::Env#[]-API --- lib/logan/inc/main.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logan/inc/main.rb b/lib/logan/inc/main.rb index 9483020..57032b1 100644 --- a/lib/logan/inc/main.rb +++ b/lib/logan/inc/main.rb @@ -43,11 +43,11 @@ 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::CREATE | SBDB::AUTO_COMMIT]), 3 + @store = Cache.new 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 - @serv = LogAn::Inc.new :sock => TCPServer.new( *@conf[:server]), :config => @conf[:inc] + @serv = LogAn::Inc::Server.new :sock => TCPServer.new( *@conf[:server]), :config => @conf[:inc] # Shutdown on signals @sigs[:INT] = @sigs[:TERM] = method( :shutdown) end