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