mariadb/storage
Venkata Sidagam 2226b1084c Bug #11759445: CAN'T DELETE ROWS FROM MEMORY TABLE WITH HASH KEY.
Brief description: After insert some rows to MEMORY table with HASH key some 
rows can't be deleted in one step.    

Problem Analysis/solution: info->current_ptr will have the information about the
current hash pointer from where we can traverse to the list to get all the       
remaining tuples.
      
In hp_delete_key we are updating info->current_ptr with the last_pos based on       
the flag parameter(which is the keydef and last index are same). As part of the       
fix we are making it to zero only when the code flow reaches to the end of the       
function hp_delete_key() it means that the next record which has to get deleted       
will be at the starting of the list so, that in the next call to       
read record(heap_rnext()) will take line number 100 path instead of 102 path, 
please see the below code in file hp_rnext.c, function heap_rnext().
 99       else if (!info->current_ptr)              /* Deleted or first call */
100         pos= hp_search(info, keyinfo, info->lastkey, 0);
101       else  
102         pos= hp_search(info, keyinfo, info->lastkey, 1);

with that change the hp_search() will update the info->current_ptr with the 
record which needs to be deleted.

storage/heap/hp_delete.c:
  In heap_delete_key() function we are making info->current_ptr to 0 if 
  flag is enabled.
2012-11-07 09:00:17 +05:30
..
archive Updated/added copyright headers 2012-02-15 17:21:38 +01:00
blackhole Updated/added copyright headers 2011-06-30 17:37:13 +02:00
csv Updated/added copyright headers 2011-06-30 17:37:13 +02:00
example Updated/added copyright headers 2011-06-30 17:37:13 +02:00
federated Bug #12876932 - INCORRECT SELECT RESULT ON FEDERATED TABLE 2012-07-26 15:09:22 +05:30
heap Bug #11759445: CAN'T DELETE ROWS FROM MEMORY TABLE WITH HASH KEY. 2012-11-07 09:00:17 +05:30
innobase Bug#14758405: ALTER TABLE: ADDING SERIAL NULL DATATYPE: ASSERTION: 2012-10-18 17:03:06 +03:00
innodb_plugin Backport from 5.6: Bug#14769820 ASSERT FLEN == LEN 2012-10-22 22:10:33 +03:00
myisam BUG#11754894: MYISAMCHK ERROR HAS INCORRECT REFERENCE 2012-10-30 18:49:15 +05:30
myisammrg Updated/added copyright headers 2011-07-03 17:47:37 +02:00
ndb Merge from mysql-5.1.58-release 2011-07-06 00:56:51 +02:00
Makefile.am Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mysql_storage_engine.cmake Updated/added copyright headers 2011-06-30 17:37:13 +02:00