25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

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

View File

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