mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-09-11 19:17:17 +03:00
properly close connections to postgres
This commit is contained in:
parent
0eecadb091
commit
89af917105
@ -308,6 +308,13 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co
|
||||
{
|
||||
nominatim_exportXMLEnd(writer);
|
||||
}
|
||||
|
||||
// Close all connections
|
||||
for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
PQfinish(thread_data[i].conn);
|
||||
}
|
||||
PQfinish(conn);
|
||||
}
|
||||
|
||||
void *nominatim_indexThread(void * thread_data_in)
|
||||
|
Loading…
Reference in New Issue
Block a user