]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/replication.py
fix off-by-one error in replication download
[nominatim.git] / nominatim / tools / replication.py
index c7d0d3e5d8e2621d410c8e40bbb9adee1c2b68c8..afc1af473ddb1c63bfac264ac36f1b29ba98b177 100644 (file)
@@ -101,7 +101,7 @@ def update(conn, options):
     repl = ReplicationServer(options['base_url'])
 
     outhandler = WriteHandler(str(options['import_file']))
-    endseq = repl.apply_diffs(outhandler, startseq,
+    endseq = repl.apply_diffs(outhandler, startseq + 1,
                               max_size=options['max_diff_size'] * 1024)
     outhandler.close()