aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkruall <kruall@ydb.tech>2023-11-15 14:56:25 +0300
committerkruall <kruall@ydb.tech>2023-11-15 16:35:06 +0300
commitff4f46c88a1fe37f2ee668b9d9c75306ac973132 (patch)
tree1325cd7c1b1811e43f9183df28e7e692d8fb7a6f
parent0cc2a3e936fcc31071569d04e1128f3eabc48d3f (diff)
downloadydb-ff4f46c88a1fe37f2ee668b9d9c75306ac973132.tar.gz
Revert rXXXXXX: 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 cfd4384317..96a8f5d05a 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 c4b422b254..c8050700bb 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));
- UnsafeBecome(&TCheckLeaseStatusActor::StateFunc);
+ Become(&TCheckLeaseStatusActor::StateFunc);
}
void OnLeaseVerified() override {
@@ -1190,7 +1190,7 @@ public:
void OnBootstrap() override {
Register(new TGetScriptExecutionOperationQueryActor(Request->Get()->Database, Request->Get()->OperationId));
- UnsafeBecome(&TGetScriptExecutionOperationActor::StateFunc);
+ Become(&TGetScriptExecutionOperationActor::StateFunc);
}
void OnLeaseVerified() override {