Skip to content

Commit

Permalink
Fix workspace reservations not being held correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed Jan 1, 2025
1 parent bcd36a0 commit 14b0429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UET/Redpoint.Uet.Workspace/PhysicalWorkspaceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ private async Task<IWorkspace> AllocateTemporaryAsync(TemporaryWorkspaceDescript
try
{
_logger.LogInformation($"Creating physical temporary workspace: {reservation.ReservedPath}");
usingReservation = true;
return new ReservationWorkspace(reservation);
}
finally
Expand Down Expand Up @@ -298,6 +299,9 @@ private async Task<IWorkspace> AllocateRemoteZfsAsync(RemoteZfsWorkspaceDescript

_logger.LogInformation($"Remote ZFS workspace '{targetPath}' is now available at '{linkFolder}'.");

usingInnerReservation = true;
usingOuterReservation = true;

return new RemoteZfsWorkspace(response, reservation);
}
finally
Expand Down

0 comments on commit 14b0429

Please sign in to comment.