diff options
author | monty@hundin.mysql.fi <> | 2002-04-13 15:34:39 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-04-13 15:34:39 +0300 |
commit | b5a145d87290aad611c3aa71e5e9a736d467ec5a (patch) | |
tree | 6bb12842fb04d64fa854f04ec3d07da1e1f7c48b /myisam/mi_write.c | |
parent | e5866a7a316869d06677babdd45a62dfe6026db1 (diff) | |
parent | ee737d2fc2b2a1ec64e54146c986f2535314ae4e (diff) | |
download | mariadb-git-b5a145d87290aad611c3aa71e5e9a736d467ec5a.tar.gz |
merge
Diffstat (limited to 'myisam/mi_write.c')
-rw-r--r-- | myisam/mi_write.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/myisam/mi_write.c b/myisam/mi_write.c index 5a2711aac92..d357ab24d52 100644 --- a/myisam/mi_write.c +++ b/myisam/mi_write.c @@ -17,6 +17,8 @@ /* Write a row to a MyISAM table */ #include "fulltext.h" +#include "rt_index.h" + #ifdef __WIN__ #include <errno.h> #endif @@ -121,17 +123,17 @@ int mi_write(MI_INFO *info, byte *record) } else { - uint key_length=_mi_make_key(info,i,buff,record,filepos); - if (_mi_ck_write(info,i,buff,key_length)) - { - if (local_lock_tree) - rw_unlock(&share->key_root_lock[i]); - DBUG_PRINT("error",("Got error: %d on write",my_errno)); - goto err; - } + if (share->keyinfo[i].ck_insert(info,i,buff, + _mi_make_key(info,i,buff,record,filepos))) + { + if (local_lock_tree) + rw_unlock(&share->key_root_lock[i]); + DBUG_PRINT("error",("Got error: %d on write",my_errno)); + goto err; + } } if (local_lock_tree) - rw_unlock(&share->key_root_lock[i]); + rw_unlock(&share->key_root_lock[i]); } } if (share->calc_checksum) |