]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/index.c
Updated reverse geocoding to improve handling of zoom=0
[nominatim.git] / nominatim / index.c
index 128ba99455e0fb85adcbb9d8906b978a940468c4..3f161cc3ad3a90718d1280210ad5308633d073d6 100644 (file)
@@ -359,7 +359,7 @@ void *nominatim_indexThread(void * thread_data_in)
                        done = 1;
                else
                {
                        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);
                        {
                            fprintf(stderr, "index_placex: UPDATE failed - deadlock, retrying (%ld)\n", place_id);
                            PQclear(res);