aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraozeritsky <aozeritsky@yandex-team.ru>2022-02-23 04:44:59 +0300
committeraozeritsky <aozeritsky@yandex-team.ru>2022-02-23 04:44:59 +0300
commit17287aa52427fd8b04bf0bc9a7b0f2e39fcb3d7e (patch)
treed29c945e324ade606773a73caa585884c86e614e
parentb958f140608f127fbd9016500d0ef4e3a9c355d2 (diff)
downloadydb-17287aa52427fd8b04bf0bc9a7b0f2e39fcb3d7e.tar.gz
YQL-11232: Fixes
ref:1dd32ef27f1532f2e295cd3bbac9d0b00c584746
-rw-r--r--ydb/library/yql/core/facade/yql_facade.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ydb/library/yql/core/facade/yql_facade.cpp b/ydb/library/yql/core/facade/yql_facade.cpp
index 231b751def..59bf2c52aa 100644
--- a/ydb/library/yql/core/facade/yql_facade.cpp
+++ b/ydb/library/yql/core/facade/yql_facade.cpp
@@ -1394,12 +1394,8 @@ bool TProgram::HasActiveProcesses() {
}
bool TProgram::NeedWaitForActiveProcesses() {
- bool flag = HasActiveProcesses();
- if (!flag) {
- return false;
- }
for (const auto& dp : DataProviders_) {
- if (dp.WaitForActiveProcesses) {
+ if (dp.HasActiveProcesses && dp.HasActiveProcesses() && dp.WaitForActiveProcesses) {
return true;
}
}