mariadb/heap
pappa@c-5608e253.1238-1-64736c10.cust.bredbandsbolaget.se 4282ad92cb Bug #12796: Record lost in HEAP table
Two handler objects were present, one was used for an insert and the other for a select
The state of the statistics was local to the handler object and thus the other handler
object didn't notice the insert.
Fix included:
1) Add a new variable key_stat_version added to whenever statistics was considered in need
of update (previously key_stats_ok= FALSE in those places)
2) Add a new handler variable key_stat_version assigned whenever key_stats_ok= TRUE was set
previously
3) Fix records_in_range to return records if records <= 1
4) Fix records_in_range to add 2 to rec_per_key to ensure we don't specify 0 or 1 when it isn't
and thus invoking incorrect optimisations.
5) Fix unique key handling for HEAP table in records_in_range
2005-11-08 00:26:37 -05:00
..
.cvsignore
_check.c
_rectest.c
ChangeLog
heapdef.h
hp_block.c
hp_clear.c
hp_close.c
hp_create.c
hp_delete.c
hp_extra.c
hp_hash.c
hp_info.c
hp_open.c
hp_panic.c
hp_rename.c
hp_rfirst.c
hp_rkey.c
hp_rlast.c
hp_rnext.c
hp_rprev.c
hp_rrnd.c
hp_rsame.c
hp_scan.c
hp_static.c
hp_test1.c
hp_test2.c
hp_update.c
hp_write.c
make-ccc
Makefile.am