25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

mod_push_mnesia: Fix lookup of all host sessions

This commit is contained in:
Holger Weiss 2018-06-18 23:05:08 +02:00
parent bb76da03ea
commit 75127a0deb

View File

@ -128,9 +128,9 @@ lookup_sessions(LServer) ->
timestamp = TS, timestamp = TS,
service = PushLJID, service = PushLJID,
node = Node, node = Node,
xml = El}) xml = El} = Rec)
when S == LServer -> when S == LServer ->
{TS, PushLJID, Node, El} Rec
end), end),
Records = mnesia:dirty_select(push_session, MatchSpec), Records = mnesia:dirty_select(push_session, MatchSpec),
{ok, records_to_sessions(Records)}. {ok, records_to_sessions(Records)}.