aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2020-04-06 20:39:55 +0200
committerGilles Chehade <gilles@poolp.org>2020-04-06 20:39:55 +0200
commitc128519e50bf319acfbf22dae02eac39c7d24745 (patch)
treefa7ee6acd682b4664c97266b947d65bd8f4f9325
parentMerge pull request #65 from adufray/patch-1 (diff)
downloadOpenSMTPD-extras-c128519e50bf319acfbf22dae02eac39c7d24745.tar.xz
OpenSMTPD-extras-c128519e50bf319acfbf22dae02eac39c7d24745.zip
fix mysql disconnect on error6.7.0
-rw-r--r--extras/tables/table-mysql/table_mysql.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extras/tables/table-mysql/table_mysql.c b/extras/tables/table-mysql/table_mysql.c
index 53fb7b7..010f19e 100644
--- a/extras/tables/table-mysql/table_mysql.c
+++ b/extras/tables/table-mysql/table_mysql.c
@@ -372,9 +372,7 @@ retry:
}
if (mysql_stmt_execute(stmt)) {
- if (mysql_stmt_errno(stmt) == CR_SERVER_LOST ||
- mysql_stmt_errno(stmt) == CR_SERVER_GONE_ERROR ||
- mysql_stmt_errno(stmt) == CR_COMMANDS_OUT_OF_SYNC) {
+ if (mysql_stmt_errno(stmt)) {
log_warnx("warn: trying to reconnect after error: %s", mysql_stmt_error(stmt));
if (config_connect(config))
goto retry;