This commit is contained in:
Feng 2016-03-21 09:54:24 +08:00
parent 9ba9d2d794
commit 2a16888f07
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{application, emqttd,
[
{description, "Erlang MQTT Broker"},
{vsn, "0.17.0"},
{vsn, "0.17.1"},
{id, "emqttd"},
{modules, []},
{registered, []},

View File

@ -40,7 +40,7 @@
stack_size,
reductions]).
-define(MAX_LINES, 10000).
-define(MAX_LIMIT, 10000).
-define(APP, emqttd).
@ -266,7 +266,7 @@ subscriptions(_) ->
if_could_print(Tab, Fun) ->
case mnesia:table_info(Tab, size) of
Size when Size >= ?MAX_LINES ->
Size when Size >= ?MAX_LIMIT ->
?PRINT("Could not list, too many ~ss: ~p~n", [Tab, Size]);
_Size ->
Keys = mnesia:dirty_all_keys(Tab),