Always init pubsub_index when using mnesia
This commit is contained in:
parent
19614678e9
commit
b75780b9cd
|
@ -256,6 +256,10 @@ init([ServerHost, Opts]) ->
|
||||||
fun(A) when is_integer(A) andalso A >= 0 -> A end, ?MAXITEMS),
|
fun(A) when is_integer(A) andalso A >= 0 -> A end, ?MAXITEMS),
|
||||||
MaxSubsNode = gen_mod:get_opt(max_subscriptions_node, Opts,
|
MaxSubsNode = gen_mod:get_opt(max_subscriptions_node, Opts,
|
||||||
fun(A) when is_integer(A) andalso A >= 0 -> A end, undefined),
|
fun(A) when is_integer(A) andalso A >= 0 -> A end, undefined),
|
||||||
|
case gen_mod:db_type(ServerHost, ?MODULE) of
|
||||||
|
mnesia -> pubsub_index:init(Host, ServerHost, Opts);
|
||||||
|
_ -> ok
|
||||||
|
end,
|
||||||
{Plugins, NodeTree, PepMapping} = init_plugins(Host, ServerHost, Opts),
|
{Plugins, NodeTree, PepMapping} = init_plugins(Host, ServerHost, Opts),
|
||||||
DefaultModule = plugin(Host, hd(Plugins)),
|
DefaultModule = plugin(Host, hd(Plugins)),
|
||||||
BaseOptions = DefaultModule:options(),
|
BaseOptions = DefaultModule:options(),
|
||||||
|
|
Loading…
Reference in New Issue