Skip to content

Commit

Permalink
Revert "Fix for MDEV-10361: Don't try to reconnect twice: if mysql->o…
Browse files Browse the repository at this point in the history
…ptions.reconnect is set,"

This reverts commit 739bdc8.
  • Loading branch information
9EOR9 committed Jan 16, 2018
1 parent 739bdc8 commit 6ad7e50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmariadb/libmariadb.c
Expand Up @@ -2896,6 +2896,11 @@ mysql_ping(MYSQL *mysql)
int rc;
DBUG_ENTER("mysql_ping");
rc= simple_command(mysql,MYSQL_COM_PING,0,0,0,0);

/* if connection was terminated and reconnect is true, try again */
if (rc!=0 && mysql->reconnect)
rc= simple_command(mysql,MYSQL_COM_PING,0,0,0,0);
return rc;
}


Expand Down

0 comments on commit 6ad7e50

Please sign in to comment.