]> git.openstreetmap.org Git - nominatim.git/commitdiff
don't classify normal SQL errors as deadlocks
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 28 Jan 2012 23:33:28 +0000 (23:33 +0000)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 28 Jan 2012 23:33:28 +0000 (23:33 +0000)
nominatim/index.c

index 128ba99455e0fb85adcbb9d8906b978a940468c4..3f161cc3ad3a90718d1280210ad5308633d073d6 100644 (file)
@@ -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);