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
1 changed files with 2 additions and 0 deletions

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>>);