• Joerg Bruehe's avatar
    Bug#65745: UPDATE ON INNODB TABLE ENTERS RECURSION · 59c79cc5
    Joerg Bruehe authored
    Introduction of cost based decision on filesort vs index for UPDATE
    statements changed detection of the fact that the index used to scan the
    table is being updated. The new design missed the case of index merge
    when there is no single index to check. That was worked until a recent
    change in InnoDB after which it went into infinite recursion if update of
    the used index wasn't properly detected.
    
    The fix consists of 'used key being updated' detection code from 5.1.
    
    Patch done by Evgeny Potemkin <evgeny.potemkin@oracle.com>
    and transferred into the 5.5.25a release build by Joerg Bruehe.
    
    This changeset is the difference between MySQL 5.5.25 and 5.5.25a.
    
    
    VERSION:
      Version number change.
    sql/sql_update.cc:
      Bug#65745: UPDATE ON INNODB TABLE ENTERS RECURSION
      The check for used key being updated is extended to cover the case when
      index merge is used.
    59c79cc5
VERSION 89 Bytes