mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-13 06:14:07 +00:00
properly close connections to postgres
This commit is contained in:
@@ -308,6 +308,13 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co
|
|||||||
{
|
{
|
||||||
nominatim_exportXMLEnd(writer);
|
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)
|
void *nominatim_indexThread(void * thread_data_in)
|
||||||
|
|||||||
Reference in New Issue
Block a user