mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
fix ets table name change
SVN Revision: 2115
This commit is contained in:
parent
a16230c9ca
commit
db6a8c2e05
@ -552,7 +552,7 @@ purge_node(NodeId, Owner) ->
|
||||
get_entity_affiliations(Host, Owner) ->
|
||||
GenKey = jlib:short_prepd_bare_jid(Owner),
|
||||
States = mnesia:match_object(#pubsub_state{stateid = {GenKey, '_'}, _ = '_'}),
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(Host, pubsub_state), nodetree) of
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(Host, config), nodetree) of
|
||||
[{nodetree, N}] -> N;
|
||||
_ -> nodetree_default
|
||||
end,
|
||||
@ -607,7 +607,7 @@ get_entity_subscriptions(Host, Owner) ->
|
||||
++ mnesia:match_object(
|
||||
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
||||
end,
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(Host, pubsub_state), nodetree) of
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(Host, config), nodetree) of
|
||||
[{nodetree, N}] -> N;
|
||||
_ -> nodetree_default
|
||||
end,
|
||||
|
@ -174,7 +174,7 @@ get_entity_affiliations(_Host, Owner) ->
|
||||
SubKey = jlib:jid_tolower(Owner),
|
||||
GenKey = jlib:jid_remove_resource(SubKey),
|
||||
States = mnesia:match_object(#pubsub_state{stateid = {GenKey, '_'}, _ = '_'}),
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(D, pubsub_state), nodetree) of
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(D, config), nodetree) of
|
||||
[{nodetree, N}] -> N;
|
||||
_ -> nodetree_default
|
||||
end,
|
||||
@ -206,7 +206,7 @@ get_entity_subscriptions(_Host, Owner) ->
|
||||
++ mnesia:match_object(
|
||||
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
||||
end,
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(D, pubsub_state), nodetree) of
|
||||
NodeTree = case ets:lookup(gen_mod:get_module_proc(D, config), nodetree) of
|
||||
[{nodetree, N}] -> N;
|
||||
_ -> nodetree_default
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user