summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorunknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-05-04 14:38:42 -0400
committerunknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-05-04 14:38:42 -0400
commite79ced8b06f6c17d8333d81593b348d33a0eb511 (patch)
tree7a512e868e30693e6c052108926dff78db4802ee /sql/ha_partition.cc
parent3065eeb3f8cff732e1a462b58996105881c7ca88 (diff)
downloadmariadb-git-e79ced8b06f6c17d8333d81593b348d33a0eb511.tar.gz
BUG#19501: Data_Free incorrectly handled for partitioned tables
mysql-test/r/partition.result: New test case mysql-test/t/partition.test: New test case sql/ha_partition.cc: Handle delete_length in info call (was forgotten)
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 1ab2c4270fd..c58df5b2d3c 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -4169,6 +4169,8 @@ void ha_partition::info(uint flag)
index_file_length: Length of index file, in principle bytes in
indexes in the table
We report sum
+ delete_length: Length of free space easily used by new records in table
+ We report sum
mean_record_length:Mean record length in the table
We calculate this
check_time: Time of last check (only applicable to MyISAM)
@@ -4178,6 +4180,7 @@ void ha_partition::info(uint flag)
deleted= 0;
data_file_length= 0;
index_file_length= 0;
+ delete_length= 0;
check_time= 0;
file_array= m_file;
do
@@ -4190,6 +4193,7 @@ void ha_partition::info(uint flag)
deleted+= file->deleted;
data_file_length+= file->data_file_length;
index_file_length+= file->index_file_length;
+ delete_length+= file->delete_length;
if (file->check_time > check_time)
check_time= file->check_time;
}