diff options
author | Erlang/OTP <[email protected]> | 2012-01-25 15:21:09 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2012-01-25 15:21:09 +0100 |
commit | 61fa5c03369e9ae6de2b4ae24438c236df93d7cb (patch) | |
tree | 4968c9941f15d3562a74b8138ec7e8e9d3daadcc /lib/snmp/src/agent/snmpa_mib_lib.erl | |
parent | a8af5a6bae97ddd7bfc2bcff2e701fa37f47640c (diff) | |
parent | 8d8d0a6529874345f3bb69349f573a75a73ea373 (diff) | |
download | otp-61fa5c03369e9ae6de2b4ae24438c236df93d7cb.tar.gz otp-61fa5c03369e9ae6de2b4ae24438c236df93d7cb.tar.bz2 otp-61fa5c03369e9ae6de2b4ae24438c236df93d7cb.zip |
Merge branch 'bmk/snmp/snmp4216_integration/r15' into maint-r15
* bmk/snmp/snmp4216_integration/r15:
[snmp] Releasse notes cleanup
[snmp/agent] Incorrect mib server cache gclimit update
[snmp] Updated doc and fixed wrequest create macros
[snmp] Be more verbose in the worker procs
[snmp] Add a more informative return value when the trap sending fails
[snmp] Fixed the mt_trap test-case
[snmp] Maximum number of varbinds in a Get-BULK response
[snmp] Correted the expect bug in the snmp test utility
[snmp] Mostly added some more verbosity stuff
Diffstat (limited to 'lib/snmp/src/agent/snmpa_mib_lib.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_mib_lib.erl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/snmp/src/agent/snmpa_mib_lib.erl b/lib/snmp/src/agent/snmpa_mib_lib.erl index 078e681945..3c94cc8095 100644 --- a/lib/snmp/src/agent/snmpa_mib_lib.erl +++ b/lib/snmp/src/agent/snmpa_mib_lib.erl @@ -61,23 +61,23 @@ table_del_row({Tab, Db} = TabDb, Key) -> get_table(NameDb, FOI) -> (catch get_table(NameDb, FOI, [], [])). -get_table(NameDb, FOI, Oid, Acc) -> - case table_next(NameDb, Oid) of +get_table(NameDb, FOI, Key, Acc) -> + case table_next(NameDb, Key) of endOfTable -> ?vdebug("end of table",[]), {ok, lists:reverse(Acc)}; - Oid -> + Key -> %% Crap, circular ref - ?vinfo("cyclic reference: ~w -> ~w", [Oid,Oid]), - throw({error, {cyclic_db_reference, Oid, Acc}}); - NextOid -> - ?vtrace("get row for oid ~w", [NextOid]), - case table_get_row(NameDb, NextOid, FOI) of + ?vinfo("cyclic reference: ~w -> ~w", [Key, Key]), + throw({error, {cyclic_db_reference, Key, Acc}}); + NextKey -> + ?vtrace("get row for key ~w", [NextKey]), + case table_get_row(NameDb, NextKey, FOI) of undefined -> - throw({error, {invalid_rowindex, NextOid, Acc}}); + throw({error, {invalid_rowindex, NextKey, Acc}}); Row -> ?vtrace("row: ~w", [Row]), - get_table(NameDb, FOI, NextOid, [{NextOid, Row}|Acc]) + get_table(NameDb, FOI, NextKey, [{NextKey, Row}|Acc]) end end. |