Skip to content

Commit

Permalink
mxqsub: Retry on deadlock in mysql database
Browse files Browse the repository at this point in the history
relates to issue #51
  • Loading branch information
mariux committed May 7, 2017
1 parent db6c3e4 commit 72f2543
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ static int mx__mysql_stmt_execute(struct mx_mysql_stmt *stmt)

case CR_SERVER_GONE_ERROR:
case CR_SERVER_LOST:
case ER_LOCK_DEADLOCK:
return -(errno=EAGAIN);

case CR_UNKNOWN_ERROR:
Expand Down

0 comments on commit 72f2543

Please sign in to comment.