From 8f3feac916b15bf7992c760d6ccb9314b1a58556 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Wed, 22 Apr 2015 01:11:45 +0200 Subject: [PATCH] Ensure routed is backwards compatible --- include/osrm/libosrm_config.hpp | 4 ++-- routed.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/osrm/libosrm_config.hpp b/include/osrm/libosrm_config.hpp index ceffb61f9..67caa3997 100644 --- a/include/osrm/libosrm_config.hpp +++ b/include/osrm/libosrm_config.hpp @@ -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) { } diff --git a/routed.cpp b/routed.cpp index 8b0e2e88b..294efa8f1 100644 --- a/routed.cpp +++ b/routed.cpp @@ -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,