mariadb/storage/heap
Venkata Sidagam f1bf362f6c 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.
2012-11-07 09:00:17 +05:30
..
.cvsignore
_check.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
_rectest.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
ChangeLog
CMakeLists.txt Updated/added copyright headers 2011-06-30 17:37:13 +02:00
ha_heap.cc BUG#11759349 - 51655: CREATE TABLE IN MEMORY ENGINE DOESN'T STORE 2011-09-27 17:38:51 +05:30
ha_heap.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
heapdef.h Added support for 'internal temporary tables' in HEAP tables. 2007-07-25 01:58:12 +03:00
hp_block.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_clear.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_close.c Added support for 'internal temporary tables' in HEAP tables. 2007-07-25 01:58:12 +03:00
hp_create.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
hp_delete.c Bug #11759445: CAN'T DELETE ROWS FROM MEMORY TABLE WITH HASH KEY. 2012-11-07 09:00:17 +05:30
hp_extra.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
hp_hash.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
hp_info.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
hp_open.c Added support for 'internal temporary tables' in HEAP tables. 2007-07-25 01:58:12 +03:00
hp_panic.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
hp_rename.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
hp_rfirst.c Merge mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-5.0-engines 2007-09-13 17:12:46 +05:00
hp_rkey.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_rlast.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_rnext.c Merge mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-5.0-engines 2007-09-13 17:12:46 +05:00
hp_rprev.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_rrnd.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_rsame.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_scan.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hp_static.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
hp_test1.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
hp_test2.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
hp_update.c Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> 2008-02-18 23:29:39 +01:00
hp_write.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
make-ccc
Makefile.am Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
plug.in bug #23369 (Embedded library can't be linked) 2006-10-18 17:03:37 +05:00