Deadlock in Discover over access to the device_ports table
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* Update Print media CSS to handle new UI components
|
* Update Print media CSS to handle new UI components
|
||||||
|
* Deadlock in Discover over access to the device_ports table
|
||||||
|
|
||||||
2.018000 - 2013-10-08
|
2.018000 - 2013-10-08
|
||||||
|
|
||||||
|
|||||||
@@ -749,9 +749,11 @@ sub _set_manual_topology {
|
|||||||
|
|
||||||
schema('netdisco')->txn_do(sub {
|
schema('netdisco')->txn_do(sub {
|
||||||
# clear manual topology flags
|
# clear manual topology flags
|
||||||
schema('netdisco')->resultset('DevicePort')->update({manual_topo => \'false'});
|
schema('netdisco')->resultset('DevicePort')
|
||||||
|
->search({ip => $device->ip})->update({manual_topo => \'false'});
|
||||||
|
|
||||||
my $topo_links = schema('netdisco')->resultset('Topology');
|
my $topo_links = schema('netdisco')->resultset('Topology')
|
||||||
|
->search({-or => [dev1 => $device->ip, dev2 => $device->ip]});
|
||||||
debug sprintf ' [%s] neigh - setting manual topology links', $device->ip;
|
debug sprintf ' [%s] neigh - setting manual topology links', $device->ip;
|
||||||
|
|
||||||
while (my $link = $topo_links->next) {
|
while (my $link = $topo_links->next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user