diff options
author | monty@hundin.mysql.fi <> | 2001-08-19 14:43:51 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-08-19 14:43:51 +0300 |
commit | a1be2a894f339f7b14a6b654c961d77ba13298d4 (patch) | |
tree | e2a8b10d8dae9fee5283beb230210199e135ef74 /heap/hp_delete.c | |
parent | 1e1a1ec064de1f6ddbd0ae433b83d7c8647557a3 (diff) | |
download | mariadb-git-a1be2a894f339f7b14a6b654c961d77ba13298d4.tar.gz |
Fix of UNION code
Added heap_delete_table
Added HA_EXTRA_PREPARE_FOR_DELETE
Added and use my_dup() for faster open of tables.
Removed not working no-mix-table-type
Diffstat (limited to 'heap/hp_delete.c')
-rw-r--r-- | heap/hp_delete.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heap/hp_delete.c b/heap/hp_delete.c index a6e77fe5f27..921b6cf36e6 100644 --- a/heap/hp_delete.c +++ b/heap/hp_delete.c @@ -50,7 +50,8 @@ int heap_delete(HP_INFO *info, const byte *record) info->current_hash_ptr=0; DBUG_RETURN(0); err: - if( ++(share->records) == share->blength) share->blength+= share->blength; + if (++(share->records) == share->blength) + share->blength+= share->blength; DBUG_RETURN(my_errno); } @@ -66,7 +67,8 @@ int _hp_delete_key(HP_INFO *info, register HP_KEYDEF *keyinfo, DBUG_ENTER("_hp_delete_key"); blength=share->blength; - if (share->records+1 == blength) blength+= blength; + if (share->records+1 == blength) + blength+= blength; lastpos=hp_find_hash(&keyinfo->block,share->records); last_ptr=0; |