We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c3bb2 commit 5d3a333Copy full SHA for 5d3a333
lib_acl/src/db/mysql/acl_dbpool_mysql.c
@@ -218,6 +218,8 @@ int sane_mysql_reopen(ACL_DB_HANDLE *handle)
218
MYSQL *myconn_saved = mysql_handle->connection;
219
ACL_DB_INFO *db_info = &mysql_handle->handle.parent->db_info;
220
221
+ __close_mysql_handle(mysql_handle);
222
+
223
if (__open_mysql_handle((ACL_DB_POOL_MYSQL*) handle->parent,
224
mysql_handle, db_info) == NULL)
225
{
@@ -226,7 +228,6 @@ int sane_mysql_reopen(ACL_DB_HANDLE *handle)
226
228
mysql_handle->connection = myconn_saved;
227
229
return (-1);
230
}
- __close_mysql_handle(mysql_handle);
231
return (0);
232
233
0 commit comments