summaryrefslogtreecommitdiff
path: root/sql/ha_heap.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2006-06-04 21:05:22 +0300
committermonty@mysql.com <>2006-06-04 21:05:22 +0300
commitc46fb742b82d9e894fc8ec92ec18b804af48b1b2 (patch)
tree8e3365da0e05942d80e6e6ae092f7e0e40832fe2 /sql/ha_heap.h
parentb615e0b6dca974678ea6f9610f42ed4dbeb1bfe5 (diff)
parent74cc73d4619c94ceb1b93725b1bba7b802f2290d (diff)
downloadmariadb-git-c46fb742b82d9e894fc8ec92ec18b804af48b1b2.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/home/my/mysql-5.1
Diffstat (limited to 'sql/ha_heap.h')
-rw-r--r--sql/ha_heap.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/ha_heap.h b/sql/ha_heap.h
index 40d39bfad42..00e59856f26 100644
--- a/sql/ha_heap.h
+++ b/sql/ha_heap.h
@@ -46,11 +46,11 @@ public:
/* Rows also use a fixed-size format */
enum row_type get_row_type() const { return ROW_TYPE_FIXED; }
const char **bas_ext() const;
- ulong table_flags() const
+ ulonglong table_flags() const
{
return (HA_FAST_KEY_READ | HA_NO_BLOBS | HA_NULL_IN_KEY |
- HA_REC_NOT_IN_SEQ | HA_READ_RND_SAME |
- HA_CAN_INSERT_DELAYED);
+ HA_REC_NOT_IN_SEQ | HA_CAN_INSERT_DELAYED | HA_NO_TRANSACTIONS |
+ HA_HAS_RECORDS | HA_STATS_RECORDS_IS_EXACT);
}
ulong index_flags(uint inx, uint part, bool all_parts) const
{
@@ -61,7 +61,8 @@ public:
const key_map *keys_to_use_for_scanning() { return &btree_keys; }
uint max_supported_keys() const { return MAX_KEY; }
uint max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
- double scan_time() { return (double) (records+deleted) / 20.0+10; }
+ double scan_time()
+ { return (double) (stats.records+stats.deleted) / 20.0+10; }
double read_time(uint index, uint ranges, ha_rows rows)
{ return (double) rows / 20.0+1; }
@@ -90,6 +91,7 @@ public:
void position(const byte *record);
void info(uint);
int extra(enum ha_extra_function operation);
+ int reset();
int external_lock(THD *thd, int lock_type);
int delete_all_rows(void);
int disable_indexes(uint mode);