25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01: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
end.
tree(_Host, <<"virtual">>) ->
nodetree_virtual; % special case, virtual does not use any backend
tree(Host, Name) ->
case gen_mod:db_type(serverhost(Host), ?MODULE) of
mnesia -> jlib:binary_to_atom(<<"nodetree_", Name/binary>>);