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
This commit is contained in:
parent
2cb987fb3f
commit
50edccfad2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue