From 9743c0f4f02959cc46c7af3c7731e7b901f9be8c Mon Sep 17 00:00:00 2001 From: magodo Date: Sun, 13 Feb 2022 01:54:38 +0800 Subject: [PATCH] Fix potential deadlocks among provider level (#15396) --- internal/services/network/network_interface_locking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/network/network_interface_locking.go b/internal/services/network/network_interface_locking.go index add8ea380a7a..27b6997d35a9 100644 --- a/internal/services/network/network_interface_locking.go +++ b/internal/services/network/network_interface_locking.go @@ -13,8 +13,8 @@ type networkInterfaceIPConfigurationLockingDetails struct { } func (details networkInterfaceIPConfigurationLockingDetails) lock() { - locks.MultipleByName(&details.subnetNamesToLock, SubnetResourceName) locks.MultipleByName(&details.virtualNetworkNamesToLock, VirtualNetworkResourceName) + locks.MultipleByName(&details.subnetNamesToLock, SubnetResourceName) } func (details networkInterfaceIPConfigurationLockingDetails) unlock() {