]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
BigSwitch: Stop using external locks
authorKevin Benton <blak111@gmail.com>
Tue, 25 Feb 2014 19:37:06 +0000 (11:37 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:32 +0000 (15:20 +0800)
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

neutron/plugins/bigswitch/servermanager.py

index df2caef0e55d633cc30a3d0bc885688100c53bb0..7534be17ffa2c2e4e99072c53948374478d4db3f 100644 (file)
@@ -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: