stores (seeks) rewritten
This commit is contained in:
parent
3c86d43bcf
commit
53bf167fd1
|
@ -67,8 +67,9 @@ module LogAn::Inc
|
||||||
# Open seeks-database
|
# Open seeks-database
|
||||||
begin
|
begin
|
||||||
stores = @conf[:stores] = {}
|
stores = @conf[:stores] = {}
|
||||||
stores[:seeks] = store( @etc, 'seeks', 3,
|
db = @etc[ 'sids.store', 'seeks', SBDB::Recno, SBDB::CREATE | SBDB::AUTO_COMMIT]
|
||||||
lambda {|val| val.pack( 'NN') }) {|val| (val||0.chr*8).unpack( 'NN') }
|
db = LogAn::AutoValueConvertHash.new( db, lambda {|val| val.pack( 'NN') }) {|val| (val||0.chr*8).unpack( 'NN') }
|
||||||
|
stores[:seeks] = LogAn::Cache.new db
|
||||||
LogAn::Inc::FileParser::Base.store = LogAn::Inc::SID0.store = stores
|
LogAn::Inc::FileParser::Base.store = LogAn::Inc::SID0.store = stores
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue