• Konstantin Osipov's avatar
    ---------------------------------------------------------- · c84a2389
    Konstantin Osipov authored
    revno: 2630.2.16
    committer: Konstantin Osipov <konstantin@mysql.com>
    branch nick: mysql-6.0-runtime
    timestamp: Fri 2008-06-27 13:26:03 +0400
    message:
      Fix max_user_connections_func failure on Solaris.
      A connection that failed to log in due to a resource limit could
      be returned to the thread pool with a dangling link to user_connect
      structure of an old user. Later on it could be authenticated
      to a user that doesn't have a resource limit, so this dangling
      link won't be reset. --pool-of-threads mode made the situation
      easy to reproduce, and thus highlighted a bug that has been
      around forever.
      Make sure there are no dangling links.
    
    sql/sql_connect.cc:
      Do not return a connection structure to the thread pool with a dangling link.
    c84a2389
sql_connect.cc 34.7 KB