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

This commit is contained in:
Jenkins 2014-02-07 16:39:20 +00:00 committed by Gerrit Code Review
commit 40b0ec4715
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ def _is_db_connection_error(args):
# NOTE(adam_g): This is currently MySQL specific and needs to be extended
# to support Postgres and others.
# For the db2, the error code is -30081 since the db2 is still not ready
conn_err_codes = ('2002', '2003', '2006', '-30081')
conn_err_codes = ('2002', '2003', '2006', '2013', '-30081')
for err_code in conn_err_codes:
if args.find(err_code) != -1:
return True