aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-10-05 14:16:14 +0200
committerAnders Svensson <[email protected]>2017-10-05 14:41:56 +0200
commitf348a4461d5c3b5e887eeb550117f08508adf2d6 (patch)
treee190338f40605c1b972b44b9f31bbb1e17e35944 /lib/diameter/src/base
parent36e4e948af8c7478dbaf5b2bdd85794f09275d3f (diff)
downloadotp-f348a4461d5c3b5e887eeb550117f08508adf2d6.tar.gz
otp-f348a4461d5c3b5e887eeb550117f08508adf2d6.tar.bz2
otp-f348a4461d5c3b5e887eeb550117f08508adf2d6.zip
Update appup and code_change for ERIERL-83
Diffstat (limited to 'lib/diameter/src/base')
-rw-r--r--lib/diameter/src/base/diameter_reg.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_reg.erl b/lib/diameter/src/base/diameter_reg.erl
index e0c41a2834..5b7cfab31a 100644
--- a/lib/diameter/src/base/diameter_reg.erl
+++ b/lib/diameter/src/base/diameter_reg.erl
@@ -298,6 +298,11 @@ terminate(_Reason, _State)->
%% # code_change/3
%% ----------------------------------------------------------
+code_change(_, State, "2.1") ->
+ {ok, lists:foldl(fun add_monitor/2,
+ State,
+ ets:select(?TABLE, [{{'_', '$1'}, [], ['$1']}]))};
+
code_change(_OldVsn, State, _Extra) ->
{ok, State}.