• Vladislav Vaintroub's avatar
    MDEV-21252 ER_HOST_IS_BLOCKED returns packet sequence 1 instead of 0 · a3267c11
    Vladislav Vaintroub authored
    Fix regression introduced in MDEV-19893
    
    Some errors must be sent with seqno = 0, e.g those that are detected
    before server sends its first "welcome" packet (e.g too many connections)
    This was not taken into account originally in MDEV-19893 fix.
    
    We need to check sql_errno, before fixing sequence number, to see
    if the error we send is really an out-of-bound, e.g a KILL.
    a3267c11
protocol.cc 47.5 KB