Skip to content

Commit 4666b4e

Browse files
committed
Increase the max number of jobs for osm2pgsql-gen to 256
We have a limit of 256 set in line 688 already. Fixes #2086
1 parent d80bbcb commit 4666b4e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/gen/osm2pgsql-gen.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Main Options:
8989
-a|--append Run in append mode
9090
-c|--create Run in create mode (default)
9191
-S|--style=FILE The Lua config file (same as for osm2pgsql)
92-
-j|--jobs=NUM Number of parallel jobs (default 1)
92+
-j|--jobs=NUM Number of parallel jobs (default 1, max 256)
9393
--middle-schema=SCHEMA Database schema for middle tables (default set with --schema)
9494
--schema=SCHEMA Default database schema (default: 'public')
9595
@@ -751,11 +751,6 @@ int main(int argc, char *argv[])
751751
return 2;
752752
}
753753

754-
if (jobs < 1 || jobs > 32) {
755-
log_error("The --jobs/-j parameter must be between 1 and 32.");
756-
return 2;
757-
}
758-
759754
if (middle_dbschema.empty()) {
760755
middle_dbschema = dbschema;
761756
}

0 commit comments

Comments
 (0)