diff options
author | Georgi Kodinov <kgeorge@mysql.com> | 2008-10-01 18:50:55 +0300 |
---|---|---|
committer | Georgi Kodinov <kgeorge@mysql.com> | 2008-10-01 18:50:55 +0300 |
commit | eb3c08069db60d61f41dacb10fd6b73635fec236 (patch) | |
tree | 240ff077738b3ccfe88631d24d767a8a3ed1cada /bdb/hmac | |
parent | 652565d3622d2c6a81313aa6faf5e44fd2c9d57b (diff) | |
download | mariadb-git-eb3c08069db60d61f41dacb10fd6b73635fec236.tar.gz |
Bug#37943: Reproducible mysqld crash/sigsegv in sel_trees_can_be_ored
When analyzing the possible index use cases the server was re-using an internal structure.
This is wrong, as this internal structure gets updated during the analysis.
Fixed by making a copy of the internal structure for every place it needs to be used.
Also stopped the generation of empty SEL_TREE structures that unnecessary
complicate the analysis.
mysql-test/r/index_merge.result:
Bug#37943: test case
mysql-test/t/index_merge.test:
Bug#37943: test case
sql/opt_range.cc:
Bug#37943:
- Make copy constructors for SEL_TREE and sub-structures and use them when OR-ing trees.
- don't generate empty SEL_TREEs. Return NULL instead.
Diffstat (limited to 'bdb/hmac')
0 files changed, 0 insertions, 0 deletions