diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-04-01 11:07:51 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-04-01 11:07:51 +0100 |
commit | 89843846fdc48408d78138ad398771d99e3151d8 (patch) | |
tree | 03bd81ade66ca11b578cbc04bc7c8aa572e82c5a | |
parent | 9fe5aa2981e337c9293324facf05a88ed37a71a4 (diff) | |
download | rabbitmq-server-89843846fdc48408d78138ad398771d99e3151d8.tar.gz |
Dest -> Dst
-rw-r--r-- | src/rabbit_binding.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl index 0263144a..26eb78fb 100644 --- a/src/rabbit_binding.erl +++ b/src/rabbit_binding.erl @@ -112,13 +112,13 @@ recover(XsL, QsL) -> end end, [], rabbit_semi_durable_route). -should_recover(B = #binding{destination = Dest = #resource{ kind = Kind }}, +should_recover(B = #binding{destination = Dst = #resource{ kind = Kind }}, XNames, QNames) -> case mnesia:read({rabbit_route, B}) of - [] -> sets:is_element(Dest, case Kind of - exchange -> XNames; - queue -> QNames - end); + [] -> sets:is_element(Dst, case Kind of + exchange -> XNames; + queue -> QNames + end); _ -> false end. @@ -281,13 +281,13 @@ binding_action(Binding = #binding{source = SrcName, Fun(Src, Dst, Binding#binding{args = SortedArgs}) end). -sync_binding(Binding, Src, Dest, Fun) -> +sync_binding(Binding, Src, Dst, Fun) -> {Route, ReverseRoute} = route_with_reverse(Binding), - ok = case all_durable([Src, Dest]) of + ok = case all_durable([Src, Dst]) of true -> Fun(rabbit_durable_route, Route, write); false -> ok end, - ok = case Dest of + ok = case Dst of #amqqueue{durable = true} -> Fun(rabbit_semi_durable_route, Route, write); _ -> ok |