• Sergey Vojtovich's avatar
    Fixed close_cached_connection_tables() flushing · bfdd30d3
    Sergey Vojtovich authored
    Let DROP SERVER and ALTER SERVER perform fair affected tables flushing.
    That is acquire MDL_EXCLUSIVE and do tdc_remove_table(TDC_RT_REMOVE_ALL).
    
    Aim of this patch is elimination of another inconsistent use of
    TDC_RT_REMOVE_UNUSED. It fixes (to some extent) a problem described in the
    beginning of sql_server.cc, when close_cached_connection_tables()
    interferes with concurrent transaction.
    
    A better fix should probably introduce proper MDL locks for server
    objects?
    
    Part of MDEV-17882 - Cleanup refresh version
    bfdd30d3
sql_base.cc 299 KB