summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2015-10-26 06:08:14 +0900
committerMichael Klishin <michael@clojurewerkz.org>2015-10-26 06:08:14 +0900
commit8331f469015d6261ff84c4babb8a72374d410b57 (patch)
treea75ca036a020e8c7160d35db1faaf4279be1c2d1 /src
parent644b9b26232d04f8ee3d2091a14a08cca59692a8 (diff)
downloadrabbitmq-server-git-8331f469015d6261ff84c4babb8a72374d410b57.tar.gz
Rename policy parameters, references #369
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_queue_location_validator.erl10
-rw-r--r--src/rabbit_queue_master_location_misc.erl4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_queue_location_validator.erl b/src/rabbit_queue_location_validator.erl
index 4eab52855a..1260423d59 100644
--- a/src/rabbit_queue_location_validator.erl
+++ b/src/rabbit_queue_location_validator.erl
@@ -25,20 +25,20 @@
[{description, "Queue location policy validation"},
{mfa, {rabbit_registry, register,
[policy_validator,
- <<"x-queue-master-locator">>,
+ <<"queue-master-locator">>,
?MODULE]}}]}).
validate_policy(KeyList) ->
- case proplists:lookup(<<"x-queue-master-locator">> , KeyList) of
+ case proplists:lookup(<<"queue-master-locator">> , KeyList) of
{_, Strategy} -> validate_strategy(Strategy);
- _ -> {error, "x-queue-master-locator undefined"}
+ _ -> {error, "queue-master-locator undefined"}
end.
validate_strategy(Strategy) ->
case module(Strategy) of
R={ok, _M} -> R;
_ ->
- {error, "~p invalid x-queue-master-locator value", [Strategy]}
+ {error, "~p invalid queue-master-locator value", [Strategy]}
end.
policy(Policy, Q) ->
@@ -48,7 +48,7 @@ policy(Policy, Q) ->
end.
module(#amqqueue{} = Q) ->
- case policy(<<"x-queue-master-locator">>, Q) of
+ case policy(<<"queue-master-locator">>, Q) of
undefined -> no_location_strategy;
Mode -> module(Mode)
end;
diff --git a/src/rabbit_queue_master_location_misc.erl b/src/rabbit_queue_master_location_misc.erl
index 279869d054..0b5080956c 100644
--- a/src/rabbit_queue_master_location_misc.erl
+++ b/src/rabbit_queue_master_location_misc.erl
@@ -73,8 +73,8 @@ get_location_mod_by_args(#amqqueue{arguments=Args}) ->
end.
get_location_mod_by_policy(Queue=#amqqueue{}) ->
- case rabbit_policy:get(<<"x-queue-master-locator">> , Queue) of
- undefined -> {error, "x-queue-master-locator policy undefined"};
+ case rabbit_policy:get(<<"queue-master-locator">> , Queue) of
+ undefined -> {error, "queue-master-locator policy undefined"};
Strategy ->
case rabbit_queue_location_validator:validate_strategy(Strategy) of
Reply={ok, _CB} -> Reply;