Skip to content

Commit 23a9b0d

Browse files
committed
fix
1 parent b16e4d1 commit 23a9b0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/kqp/runtime/kqp_write_actor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
18871887
if (State == EState::FLUSHING) {
18881888
bool isEmpty = true;
18891889
for (auto& [_, info] : WriteInfos) {
1890-
if (NeedToFlushActor(actor)) {
1890+
if (NeedToFlushActor(info.WriteTableActor)) {
18911891
isEmpty = isEmpty && info.WriteTableActor->IsReady() && info.WriteTableActor->IsEmpty();
18921892
}
18931893
}
@@ -1943,7 +1943,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
19431943
}
19441944
}
19451945

1946-
bool ProcessFlush() {
1946+
bool ProcessWrite() {
19471947
if (!EnableStreamWrite && GetTotalFreeSpace() <= 0) {
19481948
ReplyErrorAndDie(
19491949
NYql::NDqProto::StatusIds::PRECONDITION_FAILED,
@@ -1957,7 +1957,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
19571957
if (NeedToFlush()) {
19581958
CA_LOG_D("Flush data");
19591959
for (auto& [_, info] : WriteInfos) {
1960-
if (info.WriteTableActor->IsReady() && NeedToFlushActor(actor)) {
1960+
if (info.WriteTableActor->IsReady() && NeedToFlushActor(info.WriteTableActor)) {
19611961
if (!info.WriteTableActor->FlushToShards()) {
19621962
return false;
19631963
}
@@ -1993,7 +1993,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
19931993
}
19941994
YQL_ENSURE(TxId);
19951995
for (auto& [_, info] : WriteInfos) {
1996-
AFL_ENSURE(!actor->FlushBeforeCommit());
1996+
AFL_ENSURE(!info.WriteTableActor->FlushBeforeCommit());
19971997
info.WriteTableActor->SetPrepare(*TxId);
19981998
}
19991999
Close();

0 commit comments

Comments
 (0)