aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkruall <kruall@ydb.tech>2023-11-15 13:03:45 +0300
committerkruall <kruall@ydb.tech>2023-11-15 13:55:26 +0300
commit2b0bf66043ecfee310e1dbf78b54932a949c7726 (patch)
treeb2a70d30b18dab8a4734feaaa41e6ff9e5bf226a
parente898c2043af95244ba24b6369f6a3a2c672e0ffc (diff)
downloadydb-2b0bf66043ecfee310e1dbf78b54932a949c7726.tar.gz
Turn on assert, KIKIMR-19280
-rw-r--r--library/cpp/actors/core/actor.h6
-rw-r--r--ydb/core/kqp/proxy_service/kqp_script_executions.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/actors/core/actor.h b/library/cpp/actors/core/actor.h
index 96a8f5d05a..cfd4384317 100644
--- a/library/cpp/actors/core/actor.h
+++ b/library/cpp/actors/core/actor.h
@@ -719,19 +719,19 @@ namespace NActors {
template <typename T>
void Become(T stateFunc) {
// TODO(kruall): have to uncomment asserts after end of sync contrib/ydb
- // static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
+ static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
this->IActorCallback::Become(stateFunc);
}
template <typename T, typename... TArgs>
void Become(T stateFunc, const TActorContext& ctx, TArgs&&... args) {
- // static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
+ static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
this->IActorCallback::Become(stateFunc, ctx, std::forward<TArgs>(args)...);
}
template <typename T, typename... TArgs>
void Become(T stateFunc, TArgs&&... args) {
- // static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
+ static_assert(std::is_convertible_v<T, TDerivedReceiveFunc>);
this->IActorCallback::Become(stateFunc, std::forward<TArgs>(args)...);
}
};
diff --git a/ydb/core/kqp/proxy_service/kqp_script_executions.cpp b/ydb/core/kqp/proxy_service/kqp_script_executions.cpp
index c8050700bb..c4b422b254 100644
--- a/ydb/core/kqp/proxy_service/kqp_script_executions.cpp
+++ b/ydb/core/kqp/proxy_service/kqp_script_executions.cpp
@@ -811,7 +811,7 @@ public:
void OnBootstrap() override {
Register(new TCheckLeaseStatusQueryActor(Database, ExecutionId, Cookie));
- Become(&TCheckLeaseStatusActor::StateFunc);
+ UnsafeBecome(&TCheckLeaseStatusActor::StateFunc);
}
void OnLeaseVerified() override {
@@ -1190,7 +1190,7 @@ public:
void OnBootstrap() override {
Register(new TGetScriptExecutionOperationQueryActor(Request->Get()->Database, Request->Get()->OperationId));
- Become(&TGetScriptExecutionOperationActor::StateFunc);
+ UnsafeBecome(&TGetScriptExecutionOperationActor::StateFunc);
}
void OnLeaseVerified() override {