diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-17 01:22:01 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-17 01:22:01 +0000 |
commit | ae4ad57d12cda350022aff26380d40f6d1779b87 (patch) | |
tree | 3fc826166eb551a9a71c92c4a1f9b08fd2eb23e7 /clients/snmpfetchng.pl | |
parent | 3f0cc69990fc73ca711298bf70866416ac757697 (diff) |
SNMPfetch: Try random things to nail down deadlock
It's not a big deal, but it's ugly.
:wq
asf
Diffstat (limited to 'clients/snmpfetchng.pl')
-rwxr-xr-x | clients/snmpfetchng.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clients/snmpfetchng.pl b/clients/snmpfetchng.pl index de8f802..dd9862d 100755 --- a/clients/snmpfetchng.pl +++ b/clients/snmpfetchng.pl @@ -83,7 +83,6 @@ sub populate_switches 'community' => $ref->{'community'} }; } - $dbh->commit; } sub inner_loop @@ -98,7 +97,6 @@ sub inner_loop $switch{'start'} = time; $qlock->execute($switch{'id'}) or die "Couldn't lock switch"; - $dbh->commit; my $s = SNMP::Session->new(DestHost => $switch{'mgtip'}, Community => $switch{'community'}, UseEnums => 1, @@ -109,6 +107,7 @@ sub inner_loop $outstanding--; } } + $dbh->commit; mylog( "Polling " . @switches . " switches: $poll_todo"); SNMP::MainLoop(5); } |