• unknown's avatar
    Bug#31347 Increase in memory usage after many DROP USER statements · 8d69dd39
    unknown authored
    Dropping users causes huge increase in memory usage because field values were
    allocated on the server memory root for temporary usage but never deallocated.
    
    This patch changes the target memory root to be that of the thread handler
    instead since this root is cleared between each statement.
    
    
    sql/sql_acl.cc:
      Changed memory root from server life time memory to thread life time memory.
    8d69dd39
sql_acl.cc 179 KB