mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-05-03 21:57:17 +00:00
Fix crash when mysql stop (#755)
Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
parent
c7cf6f7d51
commit
0405196b1a
common
@ -3873,6 +3873,7 @@ seafile_check_repo_blocks_missing (const char *repo_id,
|
|||||||
free (json_data);
|
free (json_data);
|
||||||
json_decref (ret_json);
|
json_decref (ret_json);
|
||||||
json_decref (array);
|
json_decref (array);
|
||||||
|
seaf_repo_unref (repo);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ out:
|
|||||||
for (index = size - 1; index >= 0; index--) {
|
for (index = size - 1; index >= 0; index--) {
|
||||||
d_conn = g_ptr_array_index (pool->connections, index);
|
d_conn = g_ptr_array_index (pool->connections, index);
|
||||||
if (d_conn->delete_pending) {
|
if (d_conn->delete_pending) {
|
||||||
g_ptr_array_remove (conn->pool->connections, d_conn);
|
g_ptr_array_remove (pool->connections, d_conn);
|
||||||
mysql_db_release_connection (d_conn);
|
mysql_db_release_connection (d_conn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user