summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <jan@hundin.mysql.fi>2004-10-22 07:52:52 +0300
committerunknown <jan@hundin.mysql.fi>2004-10-22 07:52:52 +0300
commitbcf7b58318e9eba2ac24561f93fb454f8ed0df62 (patch)
tree2721c01c8547e8b95dfd8295c2d9f8b59df5f0cf /sql
parent81b97c4887e2f4968449fd4cf38f94d4a0e55d10 (diff)
downloadmariadb-git-bcf7b58318e9eba2ac24561f93fb454f8ed0df62.tar.gz
Show table status now shows creation time of the table for InnoDB. Note that
this timestamp might not be the correct time because e.g. ALTER TABLE changes this timestamp. sql/ha_innodb.cc: Do not show check_time and update_time because we do not really know them. UPDATE, INSERT and CHECK TABLE do not change these timestamps.
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 466b3671e0a..8d9ecb95fc0 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -4390,10 +4390,11 @@ ha_innobase::info(
unpack_filename(path,path);
}
+ /* Note that we do not know the access time of the table,
+ nor the CHECK TABLE time, nor the UPDATE or INSERT time. */
+
if (os_file_get_status(path,&stat_info)) {
create_time = stat_info.ctime;
- check_time = stat_info.atime;
- update_time = stat_info.mtime;
}
}