Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Change second vhost record field to be limits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 19, 2016
1 parent d727c53 commit 0f765dc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion include/rabbit.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,20 @@
-record(user_vhost, {username, virtual_host}).
-record(user_permission, {user_vhost, permission}).

-record(vhost, {virtual_host, dummy}).
%% Represents a vhost.
%%
%% Historically this record had 2 arguments although the 2nd
%% was never used (`dummy`, always undefined). This is because
%% single field records were/are illegal in OTP.
%%
%% As of 3.6.x, the second argument is vhost limits,
%% which is actually used and has the same default,
%% and therefore doesn't need a migration.
-record(vhost, {
%% vhost name as a binary
virtual_host,
%% proplist of limits configured, if any
limits}).

-record(content,
{class_id,
Expand Down

0 comments on commit 0f765dc

Please sign in to comment.