• Luis Soares's avatar
    BUG#49119: Master crashes when executing 'REVOKE ... ON · 289c1493
    Luis Soares authored
    {PROCEDURE|FUNCTION} FROM ...'
    
    The master would hit an assertion when binary log was
    active. This was due to the fact that the thread's diagnostics
    area was being cleared before writing to the binlog,
    independently of mysql_routine_grant returning an error or
    not. When mysql_routine_grant was to return an error, the return
    value and the diagnostics area contents would
    mismatch. Consequently, neither my_ok would be called nor an
    error would be signaled in the diagnostics area, eventually
    triggering the assertion in net_end_statement.
    
    We fix this by not clearing the diagnostics area at binlogging
    time. 
    289c1493
rpl_do_grant.result 10.9 KB