diff options
author | innokentii <[email protected]> | 2022-10-27 22:30:56 +0300 |
---|---|---|
committer | innokentii <[email protected]> | 2022-10-27 22:30:56 +0300 |
commit | f7f376add5c5c6a260844ade1366818dd78749f8 (patch) | |
tree | 398729cd890d0ef36f16dee0770302799a12563a | |
parent | 83b8a0dc3ee65a7ea496298f9d8a427f920151d1 (diff) |
Remove unused Evs in sentinel
remove unused Evs in sentinel
-rw-r--r-- | ydb/core/cms/sentinel.cpp | 4 | ||||
-rw-r--r-- | ydb/core/cms/sentinel.h | 6 | ||||
-rw-r--r-- | ydb/core/cms/sentinel_impl.h | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/ydb/core/cms/sentinel.cpp b/ydb/core/cms/sentinel.cpp index 7e3236686ac..dbb285c184b 100644 --- a/ydb/core/cms/sentinel.cpp +++ b/ydb/core/cms/sentinel.cpp @@ -953,7 +953,7 @@ class TSentinel: public TActorBootstrapped<TSentinel> { ); } - void Handle(TEvSentinel::TEvGetSentinelStateRequest::TPtr& ev, const TActorContext &ctx) { + void Handle(TEvCms::TEvGetSentinelStateRequest::TPtr& ev, const TActorContext &ctx) { THolder<TEvCms::TEvGetSentinelStateResponse> Response; Response = MakeHolder<TEvCms::TEvGetSentinelStateResponse>(); auto &rec = Response->Record; @@ -1070,7 +1070,7 @@ public: cFunc(TEvSentinel::TEvUpdateState::EventType, UpdateState); cFunc(TEvSentinel::TEvStateUpdated::EventType, OnStateUpdated); hFunc(TEvSentinel::TEvStatusChanged, Handle); - HFunc(TEvSentinel::TEvGetSentinelStateRequest, Handle); + HFunc(TEvCms::TEvGetSentinelStateRequest, Handle); cFunc(TEvSentinel::TEvBSCPipeDisconnected::EventType, OnPipeDisconnected); cFunc(TEvents::TEvPoisonPill::EventType, PassAway); diff --git a/ydb/core/cms/sentinel.h b/ydb/core/cms/sentinel.h index 86371a7ad5a..ec31096219f 100644 --- a/ydb/core/cms/sentinel.h +++ b/ydb/core/cms/sentinel.h @@ -22,9 +22,6 @@ struct TEvSentinel { EvBSCPipeDisconnected, - EvGetSentinelStateRequest, - EvGetSentinelStateResponse, - EvEnd, }; @@ -52,9 +49,6 @@ struct TEvSentinel { struct TEvBSCPipeDisconnected: public TEventLocal<TEvBSCPipeDisconnected, EvBSCPipeDisconnected> {}; - using TEvGetSentinelStateRequest = TEvCms::TEvGetSentinelStateRequest; - using TEvGetSentinelStateResponse = TEvCms::TEvGetSentinelStateResponse; - }; // TEvSentinel IActor* CreateSentinel(TCmsStatePtr state); diff --git a/ydb/core/cms/sentinel_impl.h b/ydb/core/cms/sentinel_impl.h index 7f721fd5753..4e43822654b 100644 --- a/ydb/core/cms/sentinel_impl.h +++ b/ydb/core/cms/sentinel_impl.h @@ -24,15 +24,19 @@ public: void AddState(EPDiskState state); EPDiskStatus Compute(EPDiskStatus current, TString& reason) const; + EPDiskState GetState() const { return State; } + EPDiskState GetPrevState() const { return PrevState; } + ui64 GetStateCounter() const { return StateCounter; } + void Reset(); private: |