diff options
author | Timothy Smith <timothy.smith@sun.com> | 2008-12-14 13:34:48 -0700 |
---|---|---|
committer | Timothy Smith <timothy.smith@sun.com> | 2008-12-14 13:34:48 -0700 |
commit | c50d60852e57998d99afd8e64540560b736c76b8 (patch) | |
tree | 4a88ef03300a88d6383ff8b39aa110f784550beb /storage/innobase/handler | |
parent | 19fed02ce9c8635c1451deb0f75ecffaa8593290 (diff) | |
download | mariadb-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/innobase/handler')
-rw-r--r-- | storage/innobase/handler/ha_innodb.cc | 6 |
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; } |