summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2008-12-14 13:34:48 -0700
committerTimothy Smith <timothy.smith@sun.com>2008-12-14 13:34:48 -0700
commitc50d60852e57998d99afd8e64540560b736c76b8 (patch)
tree4a88ef03300a88d6383ff8b39aa110f784550beb /storage
parent19fed02ce9c8635c1451deb0f75ecffaa8593290 (diff)
downloadmariadb-git-c50d60852e57998d99afd8e64540560b736c76b8.tar.gz
Apply InnoDB snapshot innodb-5.1-ss2858, part 5.
A follow-up to the previous patch, fix for Bug #39438. r2720 | vasil | 2008-10-03 19:52:39 +0300 (Fri, 03 Oct 2008) | 8 lines branches/5.1: Print a warning if an attempt is made to get the free space for a table whose .ibd file is missing or the tablespace has been discarded. This is a followup to r2719. Suggested by: Inaam
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/handler/ha_innodb.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 6e4c3b736af..3a571c7fb92 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -5879,6 +5879,12 @@ ha_innobase::info(
ib_table->space) * 1024;
} else {
+ sql_print_warning(
+ "Trying to get the free space for "
+ "table %s but its tablespace has "
+ "been discarded or the .ibd file "
+ "is missing. Setting the free space "
+ "to zero.", ib_table->name);
stats.delete_length = 0;
}