summaryrefslogtreecommitdiff
path: root/libvirt/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt/utils.go')
-rw-r--r--libvirt/utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/utils.go b/libvirt/utils.go
index a82417fb..13a34312 100644
--- a/libvirt/utils.go
+++ b/libvirt/utils.go
@@ -85,8 +85,8 @@ func RemoveVolume(virConn *libvirt.Connect, key string) error {
return fmt.Errorf("Error retrieving name of volume: %s", err)
}
- PoolSync.AcquireLock(poolName)
- defer PoolSync.ReleaseLock(poolName)
+ poolMutexKV.Lock(poolName)
+ defer poolMutexKV.Unlock(poolName)
WaitForSuccess("Error refreshing pool for volume", func() error {
return volPool.Refresh(0)