2
0
Эх сурвалжийг харах

- enable reconnection explicitly
Closes: SER-80

Jan Janak 19 жил өмнө
parent
commit
c2f1d07332

+ 3 - 0
modules/db_mysql/my_con.c

@@ -89,6 +89,9 @@ struct my_con* new_connection(struct db_id* id)
 		goto err;
 	}
 
+	     /* Enable reconnection explicitly */
+	ptr->con->reconnect = 1;
+
 	DBG("new_connection: Connection type is %s\n", mysql_get_host_info(ptr->con));
 	DBG("new_connection: Protocol version is %d\n", mysql_get_proto_info(ptr->con));
 	DBG("new_connection: Server version is %s\n", mysql_get_server_info(ptr->con));