diff --git a/colddb.lua b/colddb.lua index d220e05..95001af 100644 --- a/colddb.lua +++ b/colddb.lua @@ -626,8 +626,7 @@ function colddb.remove(db,name,tag_name) end if db.indexes and colddb.file_Exists(db,"æIndex_table",tag_name) then local cs2 = string.format("%s%s",t,"æIndex_table") - local om = db.indexes_pool[cs2] - if not om and not om.file then + if not (db.indexes_pool[cs2] and db.indexes_pool[cs2].file) then colddb.open_index_table(db,tag_name) end colddb.delete_lines(db,name,tag_name)