~ubuntu-branches/ubuntu/trusty/ejabberd/trusty-proposed

« back to all changes in this revision

Viewing changes to src/odbc/ejabberd_odbc_sup.erl

  • Committer: Bazaar Package Importer
  • Author(s): Konstantin Khomoutov
  • Date: 2010-12-14 17:45:08 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20101214174508-6vgu3uw3ki6x8vj2
Tags: 2.1.6-1
* New upstream release.
* Remove obsolete patches.
* Update mod_admin_extra to revision 1106.
* Conflict with ejabberd-mod-shared-roster-ldap which is now included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                         {type, bag},
55
55
                         {local_content, true},
56
56
                         {attributes, record_info(fields, sql_pool)}]),
57
 
    mnesia:add_table_copy(local_config, node(), ram_copies),
 
57
    mnesia:add_table_copy(sql_pool, node(), ram_copies),
58
58
    F = fun() ->
59
59
                mnesia:delete({sql_pool, Host})
60
60
        end,
88
88
                                        ?DEFAULT_ODBC_START_INTERVAL]),
89
89
                            ?DEFAULT_ODBC_START_INTERVAL
90
90
                    end,
91
 
    {ok, {{one_for_one, PoolSize+1, StartInterval},
 
91
    {ok, {{one_for_one, PoolSize*10, 1},
92
92
          lists:map(
93
93
            fun(I) ->
94
94
                    {I,
95
95
                     {ejabberd_odbc, start_link, [Host, StartInterval*1000]},
96
96
                     transient,
97
 
                     brutal_kill,
 
97
                     2000,
98
98
                     worker,
99
99
                     [?MODULE]}
100
100
            end, lists:seq(1, PoolSize))}}.