aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchertus <azuikov@ydb.tech>2023-06-19 13:08:01 +0300
committerchertus <azuikov@ydb.tech>2023-06-19 13:08:01 +0300
commitff43da9a3ff8beff2560cc9fa0d9c7c45c544816 (patch)
treebd78098397244537c0859f441b3d5daa3cc0c090
parent4feedd726591f38c19369ac80cbdc8a045d00399 (diff)
downloadydb-ff43da9a3ff8beff2560cc9fa0d9c7c45c544816.tar.gz
prevent send TEvWaitPlanStep before TEvRegisterTablet
-rw-r--r--ydb/core/tx/columnshard/columnshard_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ydb/core/tx/columnshard/columnshard_impl.cpp b/ydb/core/tx/columnshard/columnshard_impl.cpp
index 956ff0602b..448298a88e 100644
--- a/ydb/core/tx/columnshard/columnshard_impl.cpp
+++ b/ydb/core/tx/columnshard/columnshard_impl.cpp
@@ -179,7 +179,9 @@ bool TColumnShard::WaitPlanStep(ui64 step) {
}
void TColumnShard::SendWaitPlanStep(ui64 step) {
- Send(MakeMediatorTimecastProxyID(), new TEvMediatorTimecast::TEvWaitPlanStep(TabletID(), step));
+ if (MediatorTimeCastRegistered) {
+ Send(MakeMediatorTimecastProxyID(), new TEvMediatorTimecast::TEvWaitPlanStep(TabletID(), step));
+ }
}
void TColumnShard::RescheduleWaitingReads() {