summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2007-05-29 21:31:45 +0400
committerunknown <sergefp@mysql.com>2007-05-29 21:31:45 +0400
commit54c88bca0ac840dcd5b20f6ee19ba02927420c23 (patch)
treedcf3b4bd596ed928ae4c0e6ec9ce31fc9bbb6e8e /sql
parente8ba126c76bd02f3121bc3085c34a1987fe4b6a7 (diff)
downloadmariadb-git-54c88bca0ac840dcd5b20f6ee19ba02927420c23.tar.gz
Added comment for ha_statistics::records
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 052c245b801..b675c2ac90d 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -851,7 +851,15 @@ public:
ulonglong max_index_file_length;
ulonglong delete_length; /* Free bytes */
ulonglong auto_increment_value;
- ha_rows records; /* Estimated records in table */
+ /*
+ The number of records in the table.
+ 0 - means the table has exactly 0 rows
+ other - if (table_flags() & HA_STATS_RECORDS_IS_EXACT)
+ the value is the exact number of records in the table
+ else
+ it is an estimate
+ */
+ ha_rows records;
ha_rows deleted; /* Deleted records */
ulong mean_rec_length; /* physical reclength */
time_t create_time; /* When table was created */