From 1edcd7208b6c95b360e763633042388c07814d39 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 28 Jan 2012 23:33:28 +0000 Subject: [PATCH] don't classify normal SQL errors as deadlocks --- nominatim/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5