Skip to content

Commit

Permalink
issue-2725: fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vladstepanyuk committed Jan 14, 2025
1 parent b0ba07e commit f02b5b0
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,29 @@ void TVolumeActor::SendReleaseDevicesToAgents(
const TString& clientId,
const TActorContext& ctx)
{
auto replyWithError = [&](auto error)
auto returnError = [&](auto error)
{
NCloud::Send(
ctx,
SelfId(),
std::make_unique<TEvVolumePrivate::TEvDevicesReleaseFinished>(
std::move(error)));
auto event =
std::make_unique<NAcquireReleaseDevices::TEvDevicesReleaseFinished>(
NAcquireReleaseDevices::TDevicesReleaseFinished{
{},
{},
{},
std::move(error),
});
NCloud::Send(ctx, SelfId(), std::move(event));
};

TString diskId = State->GetDiskId();
ui32 volumeGeneration = Executor()->Generation();

if (!clientId) {
replyWithError(MakeError(E_ARGUMENT, "empty client id"));
returnError(MakeError(E_ARGUMENT, "empty client id"));
return;
}

if (!diskId) {
replyWithError(MakeError(E_ARGUMENT, "empty disk id"));
returnError(MakeError(E_ARGUMENT, "empty disk id"));
return;
}

Expand Down

0 comments on commit f02b5b0

Please sign in to comment.