Set flushing to false
This commit is contained in:
@ -324,6 +324,7 @@ function colddb.append_index_table(db,key,tag_name)
|
||||
local fl = f.file
|
||||
if f.needs_flushing == true then
|
||||
fl:flush()
|
||||
f.needs_flushing = false
|
||||
end
|
||||
db.indexes_pool[cs].needs_flushing = true
|
||||
fl:seek("end")
|
||||
@ -337,6 +338,7 @@ function colddb.append_index_table(db,key,tag_name)
|
||||
local fl = f.file
|
||||
if f.needs_flushing == true then
|
||||
fl:flush()
|
||||
f.needs_flushing = false
|
||||
end
|
||||
db.indexes_pool[cs].needs_flushing = true
|
||||
local c = 0
|
||||
@ -367,7 +369,7 @@ function colddb.get_count(db,tag_name)
|
||||
local fl = f.file
|
||||
if f.needs_flushing == true then
|
||||
fl:flush()
|
||||
f.needs_flushing = true
|
||||
f.needs_flushing = false
|
||||
end
|
||||
fl:seek("set")
|
||||
local count = tonumber(fl:read("*l"))
|
||||
@ -429,7 +431,7 @@ function colddb.iterate_index_table(db,begin_func,func_on_iterate,end_func,args,
|
||||
local fl = f.file
|
||||
if f.needs_flushing == true then
|
||||
fl:flush()
|
||||
f.needs_flushing = true
|
||||
f.needs_flushing = false
|
||||
end
|
||||
-- Get count
|
||||
fl:seek("set")
|
||||
|
Reference in New Issue
Block a user