mirror of
https://github.com/MariaDB/server.git
synced 2025-12-09 08:01:34 +03:00
On large hard disks (> 2TB), the plugin won't function correctly, always showing 2 TB of available space due to integer overflow. Upgrade table fields to bigint to resolve this problem.
13 lines
493 B
Plaintext
13 lines
493 B
Plaintext
show create table information_schema.disks;
|
|
Table Create Table
|
|
DISKS CREATE TEMPORARY TABLE `DISKS` (
|
|
`Disk` varchar(4096) NOT NULL DEFAULT '',
|
|
`Path` varchar(4096) NOT NULL DEFAULT '',
|
|
`Total` bigint(32) NOT NULL DEFAULT 0,
|
|
`Used` bigint(32) NOT NULL DEFAULT 0,
|
|
`Available` bigint(32) NOT NULL DEFAULT 0
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
|
sum(Total) > sum(Available) sum(Total)>sum(Used)
|
|
1 1
|