]> granicus.if.org Git - ejabberd/commitdiff
No need to have the default "localhost" in the table "hosts"
authorBadlop <badlop@process-one.net>
Wed, 22 Jun 2011 10:44:47 +0000 (12:44 +0200)
committerBadlop <badlop@process-one.net>
Thu, 23 Jun 2011 14:26:36 +0000 (16:26 +0200)
src/ejabberd_hosts.erl

index ebdc2c4c50827dfad968a4677677ed2328f16db9..d9a2bb995d1c2d1b9a032779a6e41dca1e9a6e92 100644 (file)
@@ -7,6 +7,8 @@
 
 %%% Database schema (version / storage / table)
 %%%
+%%% The table 'hosts' keeps the dynamic hosts (not defined in ejabberd.cfg)
+%%%
 %%% 3.0.0-alpha-x / mnesia / hosts
 %%%  host = string()
 %%%  clusterid = integer()
@@ -213,11 +215,6 @@ handle_info(timeout, State = #state{state=wait_odbc,backend=Backend,odbc_wait_ti
                                               {clusterid, int},
                                               {config, text}]}]),
 
-           %% Now let's add the default vhost: "localhost"
-           gen_storage:dirty_write(HostB, #hosts{host = Host,
-                                                       clusterid = 1,
-                                                       config = ""}),
-
             self() ! reload,
             timer:send_interval(?RELOAD_INTERVAL, reload),
             {noreply, State#state{state=running,odbc_wait_time=0}};