dont require local file parameter for shared memory input

This commit is contained in:
Dennis Luxen 2013-10-30 11:45:06 +01:00
parent c8ab430491
commit 2822812d0d

View File

@ -230,6 +230,7 @@ inline bool GenerateServerProgramOptions(
boost::program_options::notify(option_variables); boost::program_options::notify(option_variables);
} }
if( !option_variables.count("sharedmemory") ) {
if( !option_variables.count("hsgrdata") ) { if( !option_variables.count("hsgrdata") ) {
if( !option_variables.count("base") ) { if( !option_variables.count("base") ) {
throw OSRMException("hsgrdata (or base) must be specified"); throw OSRMException("hsgrdata (or base) must be specified");
@ -278,7 +279,7 @@ inline bool GenerateServerProgramOptions(
} }
paths["timestamp"] = std::string( paths["base"].c_str()) + ".timestamp"; paths["timestamp"] = std::string( paths["base"].c_str()) + ".timestamp";
} }
}
if(1 > requested_num_threads) { if(1 > requested_num_threads) {
throw OSRMException("Number of threads must be a positive number"); throw OSRMException("Number of threads must be a positive number");
} }