diff options
author | monty@mashka.mysql.fi <> | 2002-06-11 11:20:31 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-06-11 11:20:31 +0300 |
commit | 2aecdd1a91bf8386829146609ce0219c51793841 (patch) | |
tree | 8fcaabe013fff43cf466235067f2c47f0cd66531 /myisam/mi_write.c | |
parent | db41437a100e204e60f45d5c9a6b26f63e512659 (diff) | |
download | mariadb-git-2aecdd1a91bf8386829146609ce0219c51793841.tar.gz |
Big code cleanup/review before 4.0.2 release.
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
Diffstat (limited to 'myisam/mi_write.c')
-rw-r--r-- | myisam/mi_write.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/myisam/mi_write.c b/myisam/mi_write.c index 94b9c78707e..7398ec07ae2 100644 --- a/myisam/mi_write.c +++ b/myisam/mi_write.c @@ -103,7 +103,7 @@ int mi_write(MI_INFO *info, byte *record) { bool local_lock_tree= (lock_tree && !(info->bulk_insert && - is_tree_inited(& info->bulk_insert[i]))); + is_tree_inited(&info->bulk_insert[i]))); if (local_lock_tree) { rw_wrlock(&share->key_root_lock[i]); @@ -168,9 +168,9 @@ err: uint j; for (j=0 ; j < share->base.keys ; j++) { - if (is_tree_inited(& info->bulk_insert[j])) + if (is_tree_inited(&info->bulk_insert[j])) { - reset_tree(& info->bulk_insert[j]); + reset_tree(&info->bulk_insert[j]); } } } @@ -181,7 +181,7 @@ err: { bool local_lock_tree= (lock_tree && !(info->bulk_insert && - is_tree_inited(& info->bulk_insert[i]))); + is_tree_inited(&info->bulk_insert[i]))); if (local_lock_tree) rw_wrlock(&share->key_root_lock[i]); if (share->keyinfo[i].flag & HA_FULLTEXT) @@ -227,7 +227,7 @@ int _mi_ck_write(MI_INFO *info, uint keynr, uchar *key, uint key_length) { DBUG_ENTER("_mi_ck_write"); - if (info->bulk_insert && is_tree_inited(& info->bulk_insert[keynr])) + if (info->bulk_insert && is_tree_inited(&info->bulk_insert[keynr])) { DBUG_RETURN(_mi_ck_write_tree(info, keynr, key, key_length)); } @@ -750,7 +750,7 @@ int _mi_ck_write_tree(register MI_INFO *info, uint keynr, uchar *key, int error; DBUG_ENTER("_mi_ck_write_tree"); - error= tree_insert(& info->bulk_insert[keynr], key, + error= tree_insert(&info->bulk_insert[keynr], key, key_length + info->s->rec_reflength) ? 0 : HA_ERR_OUT_OF_MEM ; DBUG_RETURN(error); |