No need to have the default "localhost" in the table "hosts"

This commit is contained in:
Badlop 2011-06-22 12:44:47 +02:00
parent ef67ec4286
commit 8ad81a3db8
1 changed files with 2 additions and 5 deletions

View 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}};