From 14b0429012661b1714c33854a842f9a8cc827440 Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Wed, 1 Jan 2025 23:49:53 +1100 Subject: [PATCH] Fix workspace reservations not being held correctly --- UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs b/UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs index 2f1bee89..db8252f0 100644 --- a/UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs +++ b/UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs @@ -129,6 +129,7 @@ private async Task AllocateTemporaryAsync(TemporaryWorkspaceDescript try { _logger.LogInformation($"Creating physical temporary workspace: {reservation.ReservedPath}"); + usingReservation = true; return new ReservationWorkspace(reservation); } finally @@ -298,6 +299,9 @@ private async Task AllocateRemoteZfsAsync(RemoteZfsWorkspaceDescript _logger.LogInformation($"Remote ZFS workspace '{targetPath}' is now available at '{linkFolder}'."); + usingInnerReservation = true; + usingOuterReservation = true; + return new RemoteZfsWorkspace(response, reservation); } finally