Skip to content

Commit

Permalink
Merge pull request #2103 from joto/increase-job-limit
Browse files Browse the repository at this point in the history
Increase the max number of jobs for osm2pgsql-gen to 256
  • Loading branch information
lonvia authored Nov 2, 2023
2 parents 7183a20 + 4666b4e commit 6a7f2c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/gen/osm2pgsql-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Main Options:
-a|--append Run in append mode
-c|--create Run in create mode (default)
-S|--style=FILE The Lua config file (same as for osm2pgsql)
-j|--jobs=NUM Number of parallel jobs (default 1)
-j|--jobs=NUM Number of parallel jobs (default 1, max 256)
--middle-schema=SCHEMA Database schema for middle tables (default set with --schema)
--schema=SCHEMA Default database schema (default: 'public')
Expand Down Expand Up @@ -751,11 +751,6 @@ int main(int argc, char *argv[])
return 2;
}

if (jobs < 1 || jobs > 32) {
log_error("The --jobs/-j parameter must be between 1 and 32.");
return 2;
}

if (middle_dbschema.empty()) {
middle_dbschema = dbschema;
}
Expand Down

0 comments on commit 6a7f2c6

Please sign in to comment.