• unknown's avatar
    BUG#27560: Memory usage of mysqld grows while doing nothing · 4b60fbb5
    unknown authored
      
    The query-cache watch thread was continually allocating new thread entries on the
    THD MEM_ROOT, not freed until server exit.
      
    Fixed by using a simple array, auto-expanded as necessary.
    
    
    sql/ha_ndbcluster.cc:
      Use a fixed array (auto-expanded as necessary) for temporary copy of open shares,
      don't keep pushing list entries on the THD mem root.
    4b60fbb5
ha_ndbcluster.cc 235 KB