mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-21587: disk.disk{_notembedded} test result
Allow for a CI system to be almost out of space, or having so little use, that the Total space is the same as available or used. Thanks Otto Kekäläinen for the bug report and testing.
This commit is contained in:
@@ -7,6 +7,6 @@ DISKS CREATE TEMPORARY TABLE `DISKS` (
|
||||
`Used` bigint(32) NOT NULL,
|
||||
`Available` bigint(32) NOT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
sum(Total) > sum(Available) sum(Total)>sum(Used)
|
||||
select sum(Total) >= sum(Available), sum(Total)>=sum(Used) from information_schema.disks;
|
||||
sum(Total) >= sum(Available) sum(Total)>=sum(Used)
|
||||
1 1
|
||||
|
@@ -1,3 +1,3 @@
|
||||
--replace_regex /varchar\([0-9]+\)/varchar(pathlen)/
|
||||
show create table information_schema.disks;
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
select sum(Total) >= sum(Available), sum(Total)>=sum(Used) from information_schema.disks;
|
||||
|
@@ -6,16 +6,16 @@ CREATE USER user1@localhost;
|
||||
GRANT SELECT ON *.* TO user1@localhost;
|
||||
connect con1,localhost,user1,,;
|
||||
connection con1;
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
sum(Total) > sum(Available) sum(Total)>sum(Used)
|
||||
select sum(Total) >= sum(Available), sum(Total) >= sum(Used) from information_schema.disks;
|
||||
sum(Total) >= sum(Available) sum(Total) >= sum(Used)
|
||||
NULL NULL
|
||||
disconnect con1;
|
||||
connection default;
|
||||
GRANT FILE ON *.* TO user1@localhost;
|
||||
connect con1,localhost,user1,,;
|
||||
connection con1;
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
sum(Total) > sum(Available) sum(Total)>sum(Used)
|
||||
select sum(Total) >= sum(Available), sum(Total) >= sum(Used) from information_schema.disks;
|
||||
sum(Total) >= sum(Available) sum(Total) >= sum(Used)
|
||||
1 1
|
||||
connection default;
|
||||
DROP USER user1@localhost;
|
||||
|
@@ -10,7 +10,7 @@ GRANT SELECT ON *.* TO user1@localhost;
|
||||
|
||||
connect (con1,localhost,user1,,);
|
||||
connection con1;
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
select sum(Total) >= sum(Available), sum(Total) >= sum(Used) from information_schema.disks;
|
||||
disconnect con1;
|
||||
|
||||
connection default;
|
||||
@@ -18,7 +18,7 @@ GRANT FILE ON *.* TO user1@localhost;
|
||||
|
||||
connect (con1,localhost,user1,,);
|
||||
connection con1;
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
select sum(Total) >= sum(Available), sum(Total) >= sum(Used) from information_schema.disks;
|
||||
connection default;
|
||||
DROP USER user1@localhost;
|
||||
|
||||
|
Reference in New Issue
Block a user