mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
fix ets table name change
SVN Revision: 2115
This commit is contained in:
parent
cdd3ab17ae
commit
6bd70aaf09
@ -553,7 +553,7 @@ get_entity_affiliations(Host, Owner) ->
|
|||||||
SubKey = jlib:jid_tolower(Owner),
|
SubKey = jlib:jid_tolower(Owner),
|
||||||
GenKey = jlib:jid_remove_resource(SubKey),
|
GenKey = jlib:jid_remove_resource(SubKey),
|
||||||
States = mnesia:match_object(#pubsub_state{stateid = {GenKey, '_'}, _ = '_'}),
|
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, N}] -> N;
|
||||||
_ -> nodetree_default
|
_ -> nodetree_default
|
||||||
end,
|
end,
|
||||||
@ -610,7 +610,7 @@ get_entity_subscriptions(Host, Owner) ->
|
|||||||
++ mnesia:match_object(
|
++ mnesia:match_object(
|
||||||
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
||||||
end,
|
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, N}] -> N;
|
||||||
_ -> nodetree_default
|
_ -> nodetree_default
|
||||||
end,
|
end,
|
||||||
|
@ -172,7 +172,7 @@ get_entity_affiliations(_Host, Owner) ->
|
|||||||
SubKey = jlib:jid_tolower(Owner),
|
SubKey = jlib:jid_tolower(Owner),
|
||||||
GenKey = jlib:jid_remove_resource(SubKey),
|
GenKey = jlib:jid_remove_resource(SubKey),
|
||||||
States = mnesia:match_object(#pubsub_state{stateid = {GenKey, '_'}, _ = '_'}),
|
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, N}] -> N;
|
||||||
_ -> nodetree_default
|
_ -> nodetree_default
|
||||||
end,
|
end,
|
||||||
@ -204,7 +204,7 @@ get_entity_subscriptions(_Host, Owner) ->
|
|||||||
++ mnesia:match_object(
|
++ mnesia:match_object(
|
||||||
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
#pubsub_state{stateid = {SubKey, '_'}, _ = '_'})
|
||||||
end,
|
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, N}] -> N;
|
||||||
_ -> nodetree_default
|
_ -> nodetree_default
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user