Merge hundin.mysql.fi:/my/mysql-3.23
into hundin.mysql.fi:/my/bk/mysql-4.0 sql/ha_innobase.cc: Auto merged sql/ha_innobase.h: Auto merged
This commit is contained in:
commit
3a5f66292d
@ -2961,7 +2961,8 @@ ha_innobase::records_in_range(
|
|||||||
KEY* key;
|
KEY* key;
|
||||||
dict_index_t* index;
|
dict_index_t* index;
|
||||||
mysql_byte* key_val_buff2 = (mysql_byte*) my_malloc(
|
mysql_byte* key_val_buff2 = (mysql_byte*) my_malloc(
|
||||||
table->reclength,
|
table->reclength
|
||||||
|
+ table->max_key_length + 100,
|
||||||
MYF(MY_WME));
|
MYF(MY_WME));
|
||||||
dtuple_t* range_start;
|
dtuple_t* range_start;
|
||||||
dtuple_t* range_end;
|
dtuple_t* range_end;
|
||||||
|
@ -96,10 +96,12 @@ class ha_innobase: public handler
|
|||||||
uint max_record_length() const { return HA_MAX_REC_LENGTH; }
|
uint max_record_length() const { return HA_MAX_REC_LENGTH; }
|
||||||
uint max_keys() const { return MAX_KEY; }
|
uint max_keys() const { return MAX_KEY; }
|
||||||
uint max_key_parts() const { return MAX_REF_PARTS; }
|
uint max_key_parts() const { return MAX_REF_PARTS; }
|
||||||
/* An InnoDB page must store >= 2 keys:
|
/* An InnoDB page must store >= 2 keys;
|
||||||
max key length is therefore set to 7000
|
a secondary key record must also contain the
|
||||||
bytes */
|
primary key value:
|
||||||
uint max_key_length() const { return 7000; }
|
max key length is therefore set to slightly
|
||||||
|
less than 1 / 4 of page size which is 16 kB */
|
||||||
|
uint max_key_length() const { return 3500; }
|
||||||
bool fast_key_read() { return 1;}
|
bool fast_key_read() { return 1;}
|
||||||
key_map keys_to_use_for_scanning() { return ~(key_map) 0; }
|
key_map keys_to_use_for_scanning() { return ~(key_map) 0; }
|
||||||
bool has_transactions() { return 1;}
|
bool has_transactions() { return 1;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user