mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fail on error
- stop indexing if there is any other error than deadlock from the DB - stop import if osm2pgsql or indexing fails
This commit is contained in:
@@ -369,8 +369,7 @@ void *nominatim_indexThread(void * thread_data_in)
|
||||
{
|
||||
fprintf(stderr, "index_placex: UPDATE failed: %s", PQerrorMessage(thread_data->conn));
|
||||
PQclear(res);
|
||||
sleep(rand() % 10);
|
||||
// exit(EXIT_FAILURE);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user