]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/index.c
enable reverse search order for everybody
[nominatim.git] / nominatim / index.c
index f337a9ece5d8560cedc9399de8543f0a8e3e9a07..13f292737082f5a4185c45086b6ff90d265c91eb 100644 (file)
@@ -308,6 +308,13 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co
     {
         nominatim_exportXMLEnd(writer);
     }
     {
         nominatim_exportXMLEnd(writer);
     }
+
+    // Close all connections
+    for (i = 0; i < num_threads; i++)
+    {
+        PQfinish(thread_data[i].conn);
+    }
+    PQfinish(conn);
 }
 
 void *nominatim_indexThread(void * thread_data_in)
 }
 
 void *nominatim_indexThread(void * thread_data_in)