diff options
author | monty@hundin.mysql.fi <> | 2002-06-20 15:25:02 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-06-20 15:25:02 +0300 |
commit | 89f897873110cf4576415e43a759a84fbc41b01b (patch) | |
tree | 7eee86ca5c680d305ade1203f3945cee038dbd46 /sql/ha_isam.h | |
parent | a3538124d76a53c35f016fb82fc1bd471a957527 (diff) | |
download | mariadb-git-89f897873110cf4576415e43a759a84fbc41b01b.tar.gz |
Fixed some bugs after last merge
Added semaphore support to MIT-pthreads.
Diffstat (limited to 'sql/ha_isam.h')
-rw-r--r-- | sql/ha_isam.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sql/ha_isam.h b/sql/ha_isam.h index 135424892f5..82a243ef5c0 100644 --- a/sql/ha_isam.h +++ b/sql/ha_isam.h @@ -26,20 +26,21 @@ class ha_isam: public handler { N_INFO *file; + /* We need this as table_flags() may change after open() */ + ulong int_table_flags; public: - ha_isam(TABLE *table): handler(table), file(0) + ha_isam(TABLE *table) + :handler(table), file(0), + int_table_flags(HA_READ_RND_SAME | HA_KEYPOS_TO_RNDPOS | HA_LASTKEY_ORDER | + HA_KEY_READ_WRONG_STR | HA_DUPP_POS | + HA_NOT_DELETE_WITH_CACHE) {} ~ha_isam() {} const char *table_type() const { return "ISAM"; } const char *index_type(uint key_number) { return "BTREE"; } const char **bas_ext() const; - ulong table_flags() const - { - return (HA_READ_RND_SAME | HA_KEYPOS_TO_RNDPOS | HA_LASTKEY_ORDER | - HA_KEY_READ_WRONG_STR | HA_DUPP_POS | HA_NOT_DELETE_WITH_CACHE | - ((table->db_record_offset) ? 0 : HA_REC_NOT_IN_SEQ)); - } + ulong table_flags() const { return int_table_flags; } uint max_record_length() const { return HA_MAX_REC_LENGTH; } uint max_keys() const { return N_MAXKEY; } uint max_key_parts() const { return N_MAXKEY_SEG; } |