24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Virtual nodetree is not attached to any backend

This commit is contained in:
Christophe Romain 2015-11-30 15:20:38 +01:00
parent c4943cffe8
commit 86a8606fd1

View File

@ -3978,6 +3978,8 @@ tree(Host) ->
Tree -> Tree Tree -> Tree
end. end.
tree(_Host, <<"virtual">>) ->
nodetree_virtual; % special case, virtual does not use any backend
tree(Host, Name) -> tree(Host, Name) ->
case gen_mod:db_type(serverhost(Host), ?MODULE) of case gen_mod:db_type(serverhost(Host), ?MODULE) of
mnesia -> jlib:binary_to_atom(<<"nodetree_", Name/binary>>); mnesia -> jlib:binary_to_atom(<<"nodetree_", Name/binary>>);