diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_queue_location_random.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_queue_location_random.erl b/src/rabbit_queue_location_random.erl index 6a3d1fea67..6a6f1bd913 100644 --- a/src/rabbit_queue_location_random.erl +++ b/src/rabbit_queue_location_random.erl @@ -40,5 +40,5 @@ description() -> queue_master_location(#amqqueue{}) -> Cluster = rabbit_queue_master_location_misc:all_nodes(), RandomPos = erlang:phash2(time_compat:monotonic_time(), length(Cluster)), - MasterNode = lists:nth(RandomPos, Cluster), + MasterNode = lists:nth(RandomPos + 1, Cluster), {ok, MasterNode}. |
