summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_binding.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl
index bfe31ef7..5ff96c23 100644
--- a/src/rabbit_binding.erl
+++ b/src/rabbit_binding.erl
@@ -405,9 +405,9 @@ remove_routes(Routes) ->
%% Of course the destination might not really be durable but it's
%% just as easy to try to delete it from the semi-durable table
%% than check first
- [ok = sync_route(R, false, true, fun mnesia:delete_object/3) ||
+ [ok = sync_route(R, false, true, fun mnesia:delete_object/3) ||
R <- RamRoutes],
- [ok = sync_route(R, false, false, fun mnesia:delete_object/3) ||
+ [ok = sync_route(R, true, true, fun mnesia:delete_object/3) ||
R <- DiskRoutes],
[R#route.binding || R <- Routes].