1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-04-27 19:15:07 +00:00

Fix crash when mysql stop (#755)

Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
feiniks 2025-04-09 17:44:26 +08:00 committed by GitHub
parent c7cf6f7d51
commit 0405196b1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -3873,6 +3873,7 @@ seafile_check_repo_blocks_missing (const char *repo_id,
free (json_data);
json_decref (ret_json);
json_decref (array);
seaf_repo_unref (repo);
return ret;
}

View File

@ -150,7 +150,7 @@ out:
for (index = size - 1; index >= 0; index--) {
d_conn = g_ptr_array_index (pool->connections, index);
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);
}
}