diff options
author | Micael Karlberg <[email protected]> | 2019-07-08 14:51:57 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-08 14:51:57 +0200 |
commit | c8854dd4ecfde41e89907620628138786e953229 (patch) | |
tree | d74b6c3fbb2bfeab05b1c5a7309b633a22b7b8bc /lib/snmp/src/agent/snmpa_mib_storage_ets.erl | |
parent | fc9ba88b2f1304b6a6f1ca1ad014f1ff91fc890e (diff) | |
parent | a9bd3c189f87a1138ca780956d27398f9d5a5aec (diff) | |
download | otp-c8854dd4ecfde41e89907620628138786e953229.tar.gz otp-c8854dd4ecfde41e89907620628138786e953229.tar.bz2 otp-c8854dd4ecfde41e89907620628138786e953229.zip |
Merge branch 'bmk/snmp/20190627/dialyzer/OTP-15932' into maint
Diffstat (limited to 'lib/snmp/src/agent/snmpa_mib_storage_ets.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_mib_storage_ets.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/snmp/src/agent/snmpa_mib_storage_ets.erl b/lib/snmp/src/agent/snmpa_mib_storage_ets.erl index 68dfa83247..173dac276e 100644 --- a/lib/snmp/src/agent/snmpa_mib_storage_ets.erl +++ b/lib/snmp/src/agent/snmpa_mib_storage_ets.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2013-2016. All Rights Reserved. +%% Copyright Ericsson AB 2013-2019. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -189,7 +189,8 @@ read(#tab{id = ID}, Key) -> write(#tab{id = ID, rec_name = RecName}, Rec) when (is_tuple(Rec) andalso (element(1, Rec) =:= RecName)) -> ?vtrace("write to table ~p", [ID]), - ets:insert(ID, Rec). + ets:insert(ID, Rec), + ok. %% --------------------------------------------------------------- @@ -213,7 +214,9 @@ delete(#tab{id = ID, file = File}) -> %% --------------------------------------------------------------- delete(#tab{id = ID}, Key) -> ?vtrace("delete from table ~p: ~p", [ID, Key]), - ets:delete(ID, Key). + ets:delete(ID, Key), + ok. + %% --------------------------------------------------------------- |