diff options
author | unknown <monty@donna.mysql.fi> | 2001-04-01 13:45:48 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-04-01 13:45:48 +0300 |
commit | 1776fbac85f35241d4c4726e40f9e40d8267e115 (patch) | |
tree | b31bc7d8e38b04c6603c8f2240f10f86497e5003 /myisam | |
parent | 05f08c18ac1de3b5b23aab88e87387d2031b3c9b (diff) | |
download | mariadb-git-1776fbac85f35241d4c4726e40f9e40d8267e115.tar.gz |
Fixed bug in ALTER TABLE
Removed _mi_rkey() function
New fork_big.pl multi-thread test
BitKeeper/deleted/.del-fork3_test.pl~c4a7bffb4f8e813c:
Delete: tests/fork3_test.pl
BitKeeper/deleted/.del-fork_test.pl~3d3535329ed8cd5e:
Delete: tests/fork_test.pl
Docs/manual.texi:
Changelog.
Updated support information
client/mysqladmin.c:
Removed not used --timeout option
configure.in:
Update version
myisam/mi_extra.c:
Fixed bug in ALTER TABLE
myisam/mi_rkey.c:
Removed _mi_rkey() function
myisam/myisamdef.h:
Removed _mi_rkey() function
myisammrg/myrg_rkey.c:
Removed _mi_rkey() function
myisammrg/myrg_rnext.c:
Removed _mi_rkey() function
mysql-test/t/alter_table.test:
Added test case for ALTER TABLE bug
sql/derror.cc:
Moved shutdown message to clean_up
sql/mysql_priv.h:
Moved shutdown message to clean_up
sql/sql_class.cc:
Fixed bug in MySQL compiled with transactions but using --skip-"table-handler"
sql/sql_show.cc:
Use time_after_lock for time of query when debugging
sql/sql_test.cc:
Check memory overruns when using 'mysqladmin debug'
strings/ctype-tis620.c:
F
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_extra.c | 1 | ||||
-rw-r--r-- | myisam/mi_rkey.c | 14 | ||||
-rw-r--r-- | myisam/myisamdef.h | 3 |
3 files changed, 5 insertions, 13 deletions
diff --git a/myisam/mi_extra.c b/myisam/mi_extra.c index fe95c60931c..cf075512ac4 100644 --- a/myisam/mi_extra.c +++ b/myisam/mi_extra.c @@ -319,6 +319,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function) { my_free(info->rec_alloc,MYF(MY_ALLOW_ZERO_PTR)); info->rec_alloc=info->rec_buff=0; + mi_fix_rec_buff_for_blob(info,info->s->base.pack_reclength); } break; case HA_EXTRA_NORMAL: /* Theese isn't in use */ diff --git a/myisam/mi_rkey.c b/myisam/mi_rkey.c index d201694ab05..84612779f5d 100644 --- a/myisam/mi_rkey.c +++ b/myisam/mi_rkey.c @@ -22,8 +22,8 @@ /* Read a record using key */ /* Ordinary search_flag is 0 ; Give error if no record with key */ -int _mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, - enum ha_rkey_function search_flag, bool raw_key) +int mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, + enum ha_rkey_function search_flag) { uchar *key_buff; MYISAM_SHARE *share=info->s; @@ -37,7 +37,7 @@ int _mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED); - if (raw_key) + if (!info->use_packed_key) { if (key_len == 0) key_len=USE_WHOLE_KEY; @@ -101,11 +101,3 @@ int _mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, err: DBUG_RETURN(my_errno); } /* _mi_rkey */ - -/* shouldn't forget to do it inline sometime */ -int mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, - enum ha_rkey_function search_flag) -{ - return _mi_rkey(info,buf,inx,key,key_len,search_flag,TRUE); -} - diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h index dde2651c0c9..33fd1b6946f 100644 --- a/myisam/myisamdef.h +++ b/myisam/myisamdef.h @@ -258,6 +258,7 @@ struct st_myisam_info { my_bool quick_mode; my_bool page_changed; /* If info->buff can't be used for rnext */ my_bool buff_used; /* If info->buff has to be reread for rnext */ + my_bool use_packed_key; /* For MYISAMMRG */ myf lock_wait; /* is 0 or MY_DONT_WAIT */ int (*read_record)(struct st_myisam_info*, my_off_t, byte*); LIST open_list; @@ -630,8 +631,6 @@ void mi_update_status(void* param); void mi_copy_status(void* to,void *from); my_bool mi_check_status(void* param); void mi_disable_non_unique_index(MI_INFO *info, ha_rows rows); -int _mi_rkey(MI_INFO *info, byte *buf, int inx, const byte *key, uint key_len, - enum ha_rkey_function search_flag, bool raw_key); my_bool check_table_is_closed(const char *name, const char *where); int mi_open_datafile(MI_INFO *info, MYISAM_SHARE *share); |