Skip to content

Commit ba2fd14

Browse files
author
Simon MacMullen
committed
Move the ignore of '_'.
1 parent adf7b99 commit ba2fd14

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/rabbit_runtime_parameters.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ list(VHost) -> list(VHost, '_').
140140
list_component(Component) -> list('_', Component).
141141

142142
list(VHost, Component) ->
143-
rabbit_vhost:assert(VHost),
143+
case VHost of
144+
'_' -> ok;
145+
_ -> rabbit_vhost:assert(VHost)
146+
end,
144147
Match = #runtime_parameters{key = {VHost, Component, '_'}, _ = '_'},
145148
[p(P) || #runtime_parameters{key = {_VHost, Comp, _Name}} = P <-
146149
mnesia:dirty_match_object(?TABLE, Match),

src/rabbit_vhost.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ with(VHostPath, Thunk) ->
122122
end.
123123

124124
%% Like with/2 but outside an Mnesia tx
125-
assert('_') -> ok;
126125
assert(VHostPath) -> case rabbit_vhost:exists(VHostPath) of
127126
true -> ok;
128127
false -> throw({error, {no_such_vhost, VHostPath}})

0 commit comments

Comments
 (0)