diff options
author | ram@mysql.r18.ru <> | 2002-10-03 17:26:05 +0500 |
---|---|---|
committer | ram@mysql.r18.ru <> | 2002-10-03 17:26:05 +0500 |
commit | d5ca940a4bf80c682006039cf970a5c4eab73a74 (patch) | |
tree | d60b7606a57b44cf2582b20c8e568e2eaaa021ed /sql/ha_heap.cc | |
parent | 2dae97b139287c0b607ef01087c91090c16f5a04 (diff) | |
parent | 032a4a927a8c8a3b8d7d585abbfc2db930f08ed4 (diff) | |
download | mariadb-git-d5ca940a4bf80c682006039cf970a5c4eab73a74.tar.gz |
Merge mysql.r18.ru:/usr/home/ram/mysql-4.1.last
into mysql.r18.ru:/usr/home/ram/mysql-4.1
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r-- | sql/ha_heap.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc index 271f00428a5..5c314462666 100644 --- a/sql/ha_heap.cc +++ b/sql/ha_heap.cc @@ -246,11 +246,7 @@ int ha_heap::create(const char *name, TABLE *table, int error; for (key= parts= 0; key < table->keys; key++) - { parts+= table->key_info[key].key_parts; - if (table->key_info[key].algorithm == HA_KEY_ALG_BTREE) - parts++; /* additional HA_KEYTYPE_END keyseg */ - } if (!(keydef= (HP_KEYDEF*) my_malloc(table->keys * sizeof(HP_KEYDEF) + parts * sizeof(HA_KEYSEG), @@ -301,15 +297,6 @@ int ha_heap::create(const char *name, TABLE *table, seg->null_pos= 0; } } - if (pos->algorithm == HA_KEY_ALG_BTREE) - { - /* additional HA_KEYTYPE_END keyseg */ - seg->type= HA_KEYTYPE_END; - seg->length= sizeof(byte*); - seg->flag= 0; - seg->null_bit= 0; - seg++; - } } mem_per_row+= MY_ALIGN(table->reclength + 1, sizeof(char*)); max_rows = (ulong) (current_thd->variables.max_heap_table_size / |