From: Kevin Benton Date: Tue, 25 Feb 2014 19:37:06 +0000 (-0800) Subject: BigSwitch: Stop using external locks X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=50edccfad29d3c602eba628fc80e46a0a67de090;p=openstack-build%2Fneutron-build.git BigSwitch: Stop using external locks Changes BigSwitch server manager REST lock to an in-memory lock since the plugin isn't expected to run in independent processes. Closes-Bug: #1284881 Change-Id: I2fdd5ba79a0c4b94b2b410db54a63f7c0ca47525 --- diff --git a/neutron/plugins/bigswitch/servermanager.py b/neutron/plugins/bigswitch/servermanager.py index df2caef0e..7534be17f 100644 --- a/neutron/plugins/bigswitch/servermanager.py +++ b/neutron/plugins/bigswitch/servermanager.py @@ -227,7 +227,7 @@ class ServerPool(object): """ return resp[0] in SUCCESS_CODES - @utils.synchronized('bsn-rest-call', external=True) + @utils.synchronized('bsn-rest-call') def rest_call(self, action, resource, data, headers, ignore_codes): good_first = sorted(self.servers, key=lambda x: x.failed) for active_server in good_first: