]> granicus.if.org Git - ejabberd/commitdiff
Virtual nodetree is not attached to any backend
authorChristophe Romain <christophe.romain@process-one.net>
Mon, 30 Nov 2015 14:20:38 +0000 (15:20 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 11 Dec 2015 11:46:40 +0000 (12:46 +0100)
src/mod_pubsub.erl

index deaed10fc3dcf962b41490c4a1d307e04db66fd0..116b99cae9a0dead312cc5cccef52583f05fbdab 100644 (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>>);