db - amend SizeTable method
This commit is contained in:
parent
b075b3aa79
commit
c3de6a3814
2
db/db.go
2
db/db.go
|
@ -191,8 +191,10 @@ func (db *Db) SizeTable(dbname string) []TableSize {
|
||||||
fmt.Printf("cannot get table size of db %s : %v", dbname, err)
|
fmt.Printf("cannot get table size of db %s : %v", dbname, err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if len(ts.Table) > 0 {
|
||||||
rs = append(rs, ts)
|
rs = append(rs, ts)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
return rs
|
return rs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user