From: Sarah Hoffmann Date: Sat, 28 Jan 2012 23:33:28 +0000 (+0000) Subject: don't classify normal SQL errors as deadlocks X-Git-Tag: v2.0.0~123 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1edcd7208b6c95b360e763633042388c07814d39 don't classify normal SQL errors as deadlocks --- diff --git a/nominatim/index.c b/nominatim/index.c index 128ba994..3f161cc3 100644 --- a/nominatim/index.c +++ b/nominatim/index.c @@ -359,7 +359,7 @@ void *nominatim_indexThread(void * thread_data_in) done = 1; else { - if (strncmp(PQerrorMessage(thread_data->conn), "ERROR: deadlock detected", 25)) + if (!strncmp(PQerrorMessage(thread_data->conn), "ERROR: deadlock detected", 25)) { fprintf(stderr, "index_placex: UPDATE failed - deadlock, retrying (%ld)\n", place_id); PQclear(res);