[MDEV-13846] Dead code ha_innobase::records_in_range() for SPATIAL INDEX Created: 2017-09-19  Updated: 2017-09-19

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.2.2
Fix Version/s: 10.2

Type: Bug Priority: Minor
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Unresolved Votes: 0
Labels: gis, range


 Description   

The function rtr_estimate_n_rows_in_range() looks like dead and buggy code.
If it were called, it should trigger rec_offs_validate() assertion failure in debug builds,
because it is not updating 'offsets' in sync with 'rec'.

Spatial indexes define a partial order, not a total order. A range cannot really exist without total order. Therefore, the virtual member function handler::records_in_range() probably should not executed on a SPATIAL INDEX at all.

We should probably remove the code from MariaDB Server 10.2.


Generated at Thu Feb 08 08:08:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.