diff --git a/exe/backend/src/main.cc b/exe/backend/src/main.cc index a1da4cd..ce58671 100644 --- a/exe/backend/src/main.cc +++ b/exe/backend/src/main.cc @@ -90,7 +90,7 @@ int main(int argc, char const* argv[]) { pl->build_rtree(w); } - auto const l = lookup{w}; + auto const l = lookup{w, opt.data_dir_, cista::mmap::protection::READ}; auto ioc = boost::asio::io_context{}; auto pool = boost::asio::io_context{}; diff --git a/exe/benchmark.cc b/exe/benchmark.cc index 160181f..661c073 100644 --- a/exe/benchmark.cc +++ b/exe/benchmark.cc @@ -71,9 +71,11 @@ int main(int argc, char const* argv[]) { auto const start = node_idx_t{cista::hash_combine(h, ++n, i.load()) % w.n_nodes()}; d.reset(opt.max_dist_); - d.add_start(car::label{car::node{start, 0, direction::kForward}, 0U}); - d.add_start(car::label{car::node{start, 0, direction::kBackward}, 0U}); - d.run(*w.r_, opt.max_dist_, nullptr, + d.add_start(w, + car::label{car::node{start, 0, direction::kForward}, 0U}); + d.add_start(w, + car::label{car::node{start, 0, direction::kBackward}, 0U}); + d.run(w, *w.r_, opt.max_dist_, nullptr, nullptr); } });