db - amend SizeTable method

This commit is contained in:
Mahdi Abu Yasmine 2023-12-02 14:06:37 +01:00
parent b075b3aa79
commit c3de6a3814

View File

@ -191,8 +191,10 @@ func (db *Db) SizeTable(dbname string) []TableSize {
fmt.Printf("cannot get table size of db %s : %v", dbname, err)
return false
}
if len(ts.Table) > 0 {
rs = append(rs, ts)
}
}
return true
})
return rs