db - amend SizeTable method
This commit is contained in:
parent
b075b3aa79
commit
c3de6a3814
4
db/db.go
4
db/db.go
|
@ -191,7 +191,9 @@ 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
|
||||||
}
|
}
|
||||||
rs = append(rs, ts)
|
if len(ts.Table) > 0 {
|
||||||
|
rs = append(rs, ts)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user