make sure that the 'transactionID' key in the ets table exists

This commit is contained in:
Harald Welte 2011-12-17 19:11:22 +01:00
parent a6ead2ab01
commit 0f692c61b5
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@
%%
start(normal, StartArgs) ->
ets:new(tcap_transaction, [named_table, public]),
ets:insert(tcap_transaction, {transactionID, 0}),
ets:new(tcap_dha, [named_table, public]),
{ok, SupRef} = application:get_env(supref),
supervisor:start_link(SupRef, tcap_sup, StartArgs).