mariadb/storage/innobase/gis
Marko Mäkelä 47cd984a3a Fix ut_ad(!leaf) failure in rec_get_offsets_func() with spatial index
This fixes a regression that only affects debug builds, caused by
commit 48192f963a which is necessary
preparation for MDEV-11369 instant ADD COLUMN. (Although that is a
10.3 task, to ease merges between 10.2 and 10.3, this change that
improves debug checks was pushed to 10.2 already.)

Unlike btr_pcur_restore_position(), rtr_cur_restore_position()
can create a search tuple out of a non-leaf page record. So,
we must pass 'bool leaf' parameter to dict_index_build_data_tuple().

dict_index_build_data_tuple(): Add a debug-only parameter 'bool leaf'.

rec_copy_prefix_to_dtuple(): Make the parameter debug-only.

row_sel_get_clust_rec_for_mysql(): In the debug code for spatial index,
remove an unnecessary call to buf_page_get_gen(), and use the already
latched block directly.
2017-09-20 22:38:37 +03:00
..
gis0geo.cc MDEV-11451: isinf || isnan -> !isfinite 2016-12-05 09:22:00 +11:00
gis0rtree.cc Add the parameter bool leaf to rec_get_offsets() 2017-09-20 16:53:34 +03:00
gis0sea.cc Fix ut_ad(!leaf) failure in rec_get_offsets_func() with spatial index 2017-09-20 22:38:37 +03:00