Error when checking index pool.
This commit is contained in:
Coder12a 2018-11-06 12:31:23 -06:00
parent a9f7a7c776
commit 6dce241a2a

View File

@ -626,8 +626,7 @@ function colddb.remove(db,name,tag_name)
end end
if db.indexes and colddb.file_Exists(db,"æIndex_table",tag_name) then if db.indexes and colddb.file_Exists(db,"æIndex_table",tag_name) then
local cs2 = string.format("%s%s",t,"æIndex_table") local cs2 = string.format("%s%s",t,"æIndex_table")
local om = db.indexes_pool[cs2] if not (db.indexes_pool[cs2] and db.indexes_pool[cs2].file) then
if not om and not om.file then
colddb.open_index_table(db,tag_name) colddb.open_index_table(db,tag_name)
end end
colddb.delete_lines(db,name,tag_name) colddb.delete_lines(db,name,tag_name)