Merge "Don't raise MySQL 2013 'Lost connection' errors"

This commit is contained in:
Jenkins 2014-02-18 01:07:05 +00:00 committed by Gerrit Code Review
commit c3ed81b16e

View File

@ -545,7 +545,7 @@ def _is_db_connection_error(args):
"""Return True if error in connecting to db."""
# NOTE(adam_g): This is currently MySQL specific and needs to be extended
# to support Postgres and others.
conn_err_codes = ('2002', '2003', '2006')
conn_err_codes = ('2002', '2003', '2006', '2013')
for err_code in conn_err_codes:
if args.find(err_code) != -1:
return True