/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/libs/storage/api/volume_proxy.h
56 строк
1 KB
Andrei Galibin
[NBS] added KeepAliveActor to maintain the connection between the base and overlay disks (#6103)
04 июн 2026, 14:41
Не верифицирован
04 июн 2026, 14:41
353d063
Код
Авторство
О чём код?
#pragma once #include "public.h" #include <cloud/blockstore/libs/kikimr/components.h> #include <cloud/blockstore/libs/kikimr/events.h> #include <contrib/ydb/library/actors/core/actorid.h> namespace NCloud::NBlockStore::NStorage { //////////////////////////////////////////////////////////////////////////////// struct TEvVolumeProxy { // // keep-alive for base-disk pipe in VolumeProxy // struct TKeepAliveRequest { TString DiskId; explicit TKeepAliveRequest(TString diskId) : DiskId(std::move(diskId)) {} }; struct TKeepAliveResponse { }; enum EEvents { EvBegin = TBlockStoreEvents::VOLUME_PROXY_START, EvKeepAliveRequest = EvBegin + 1, EvKeepAliveResponse = EvBegin + 2, EvEnd }; static_assert( EvEnd < (int)TBlockStoreEvents::VOLUME_PROXY_END, "EvEnd expected to be < TBlockStoreEvents::VOLUME_PROXY_END"); using TEvKeepAliveRequest = TRequestEvent<TKeepAliveRequest, EvKeepAliveRequest>; using TEvKeepAliveResponse = TResponseEvent<TKeepAliveResponse, EvKeepAliveResponse>; }; NActors::TActorId MakeVolumeProxyServiceId(); } // namespace NCloud::NBlockStore::NStorage