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:
Sarah Hoffmann
2012-07-31 00:31:38 +02:00
parent fe7137990b
commit b11718699e
2 changed files with 12 additions and 6 deletions

View File

@@ -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);
}
}
}