use correct dbserver for getting mysql-size info in Mysqls.get()
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -98,7 +98,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
|
|||||||
}
|
}
|
||||||
$result = Database::pexecute_first($result_stmt, $params, true, true);
|
$result = Database::pexecute_first($result_stmt, $params, true, true);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
Database::needRoot(true, $dbserver);
|
Database::needRoot(true, $result['dbserver']);
|
||||||
$mbdata_stmt = Database::prepare("
|
$mbdata_stmt = Database::prepare("
|
||||||
SELECT SUM(data_length + index_length) as MB FROM information_schema.TABLES
|
SELECT SUM(data_length + index_length) as MB FROM information_schema.TABLES
|
||||||
WHERE table_schema = :table_schema
|
WHERE table_schema = :table_schema
|
||||||
|
|||||||
Reference in New Issue
Block a user