1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-27 13:04:36 +03:00
Files
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
..
2000-07-31 21:29:14 +02:00
2000-07-31 21:29:14 +02:00
2005-08-20 10:07:46 -04:00
2004-02-16 10:03:25 +02:00
2004-02-16 10:03:25 +02:00
2003-06-10 12:19:28 +05:00
2002-07-12 13:12:32 +05:00
2002-05-23 19:26:16 +05:00
2002-05-23 19:26:16 +05:00
2002-12-05 19:38:42 +02:00
2001-12-06 14:10:51 +02:00
2003-11-20 22:06:25 +02:00
2003-11-20 22:06:25 +02:00
2002-12-05 19:38:42 +02:00
2000-07-31 21:29:14 +02:00
2005-07-05 23:24:48 +02:00