fix issue #79
This commit is contained in:
parent
dcf7578055
commit
9a5572df72
|
@ -242,11 +242,11 @@ init([]) ->
|
|||
%% local table, not shared with other table
|
||||
mnesia:create_table(topic_subscriber, [
|
||||
{type, bag},
|
||||
{record_name, topic_subscriber},
|
||||
{ram_copies, [node()]},
|
||||
{attributes, record_info(fields, topic_subscriber)},
|
||||
{index, [subpid]},
|
||||
{local_content, true}]),
|
||||
mnesia:add_table_copy(topic_subscriber, node(), ram_copies),
|
||||
mnesia:subscribe({table, topic_subscriber, simple}),
|
||||
{ok, #state{}}.
|
||||
|
||||
|
|
Loading…
Reference in New Issue