Browse files

don't classify normal SQL errors as deadlocks

  • Loading branch information...
1 parent c5e69fa commit 1edcd7208b6c95b360e763633042388c07814d39 @lonvia lonvia committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nominatim/index.c
View
2 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);

0 comments on commit 1edcd72

Please sign in to comment.