Ensure routed is backwards compatible

This commit is contained in:
Patrick Niklaus 2015-04-22 01:11:45 +02:00
parent c0e066440c
commit 8f3feac916
2 changed files with 4 additions and 2 deletions

View File

@ -39,9 +39,9 @@ struct libosrm_config
{
}
libosrm_config(const ServerPaths &paths, const bool flag, const int max_table, const int max_matching)
libosrm_config(const ServerPaths &paths, const bool sharedmemory_flag, const int max_table, const int max_matching)
: server_paths(paths), max_locations_distance_table(max_table),
max_locations_map_matching(max_matching), use_shared_memory(flag)
max_locations_map_matching(max_matching), use_shared_memory(sharedmemory_flag)
{
}

View File

@ -74,6 +74,8 @@ int main(int argc, const char *argv[])
int ip_port, requested_thread_num;
libosrm_config lib_config;
// make the behaviour of routed backward compatible
lib_config.use_shared_memory = false;
const unsigned init_result = GenerateServerProgramOptions(
argc, argv, lib_config.server_paths, ip_address, ip_port, requested_thread_num,