这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fkorotkov
Copy link
Contributor

Before only suspendable VMs were getting checked. Not sure why. It makes sense to check all.

Before only suspendable VMs were getting checked. Not sure why. It makes sense to check all.
@fkorotkov fkorotkov requested a review from edigaryev as a code owner April 23, 2024 19:26
@edigaryev
Copy link
Collaborator

Before only suspendable VMs were getting checked. Not sure why.

Because for the rest of the VMs we do this in tart clone:

let generateMAC = try localStorage.hasVMsWithMACAddress(macAddress: sourceVM.macAddress())
&& sourceVM.state() != .Suspended
try sourceVM.clone(to: tmpVMDir, generateMAC: generateMAC)

@fkorotkov
Copy link
Contributor Author

There was a report when a person just scped the same VM twice. 🤷 Seems like an improvement.

@edigaryev
Copy link
Collaborator

edigaryev commented Apr 25, 2024

There was a report when a person just scped the same VM twice. 🤷 Seems like an improvement.

Let's acquire the global lock unconditionally then to simplify things up.

@fkorotkov
Copy link
Contributor Author

SGTM. PTAL 2af05de

@fkorotkov fkorotkov merged commit 755aad4 into main Apr 25, 2024
@fkorotkov fkorotkov deleted the collisions-for-all-vms branch April 25, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants