• Praveenkumar Hulakund's avatar
    Bug#17474166 - EXECUTING STATEMENT LIKE 'SHOW ENGINE INNODB' · c66a037d
    Praveenkumar Hulakund authored
                   AND 'KILL SESSION' LEAD TO CRASH               
    
    Analysis:
    --------
    This situation occurs when the connection executes query 
    "show engine innodb status" and this connection is killed by
    executing statement "kill <con>" by another connection.
    
    In function "innodb_show_status", function "stat_print"
    is called to print the status but return value of function
    is not checked.  After killing connection, if write to 
    connection fails then error is returned and same is set
    in Diagnostic area. Since FALSE is returned from
    "innodb_show_status" now, assert to check no error
    is set in function "set_eof_status" (called from
    my_eof) is failing. 
    
    Fix:
    ----
    Changed code to check return value of function "stat_print"
    in "innodb_show_status".
    c66a037d
ha_innodb.cc 348 KB