Merge "NFS: Use Volume attr instead of dict compat for lock"

This commit is contained in:
Zuul 2022-10-14 15:31:56 +00:00 committed by Gerrit Code Review
commit ad184ca698
1 changed files with 2 additions and 2 deletions

View File

@ -536,13 +536,13 @@ class NfsDriver(remotefs.RemoteFSSnapDriverDistributed):
self._stats = data
@coordination.synchronized('{self.driver_prefix}-{volume[id]}')
@coordination.synchronized('{self.driver_prefix}-{volume.id}')
def create_volume(self, volume):
"""Apply locking to the create volume operation."""
return super(NfsDriver, self).create_volume(volume)
@coordination.synchronized('{self.driver_prefix}-{volume[id]}')
@coordination.synchronized('{self.driver_prefix}-{volume.id}')
def delete_volume(self, volume):
"""Deletes a logical volume."""