diff --git a/storage/oqgraph/graphcore.cc b/storage/oqgraph/graphcore.cc index 0a683b976aa..4a6d631be04 100644 --- a/storage/oqgraph/graphcore.cc +++ b/storage/oqgraph/graphcore.cc @@ -891,7 +891,7 @@ namespace open_query boost::unordered_map p; boost::unordered_map d; boost::queue Q; - reverse_graph r(share->g); + const reverse_graph r(share->g); p[ *dest ]= *dest; d[ *dest ] = EdgeWeight(); switch (ALGORITHM & op)