Skip to content
  • Mattias Jonsson's avatar
    2f82c30f
    Bug#13008220: HANDLER SQL STATEMENT CAN MISS TO · 2f82c30f
    Mattias Jonsson authored
    INITIALIZE FOR RANDOM READ
    
    When doing index scans and then swithing to
    random scans, without restart, ha_rnd_init
    is not called, when using the HANDLER SQL
    interface.
    
    Fixed by ensuring that when switching between
    index and random scans there will always be a call to
    ha_index/rnd_end and then ha_index/rnd_init.
    
    Also checking return values from ha_index/rnd_init/end.
    
    (updated with DBUG_ASSERT from reviewers suggestion).
    2f82c30f
    Bug#13008220: HANDLER SQL STATEMENT CAN MISS TO
    Mattias Jonsson authored
    INITIALIZE FOR RANDOM READ
    
    When doing index scans and then swithing to
    random scans, without restart, ha_rnd_init
    is not called, when using the HANDLER SQL
    interface.
    
    Fixed by ensuring that when switching between
    index and random scans there will always be a call to
    ha_index/rnd_end and then ha_index/rnd_init.
    
    Also checking return values from ha_index/rnd_init/end.
    
    (updated with DBUG_ASSERT from reviewers suggestion).
Loading