summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-romanov <[email protected]>2022-04-01 18:32:39 +0300
committera-romanov <[email protected]>2022-04-01 18:32:39 +0300
commit680819dbd0d3b79b7c8f323284429109a200d085 (patch)
tree4a9dd48f67817dbb3e740c4e50043b57e3daa3e0
parent2854f469eeb1624b692b427f574e8438b862468a (diff)
YQ-727 Add forgotten sync.
ref:b3694b7c0a78078f5a95a5940c60c28a6c3608d2
-rw-r--r--ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp b/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
index 44f076536a2..a1b627e62f2 100644
--- a/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
+++ b/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
@@ -388,6 +388,7 @@ private:
TOnDowloadFinsh onFinish) final
{
auto easy = TEasyCurlStream::Make(std::move(url), std::move(headers), expectedSize, std::move(onNewData), std::move(onFinish));
+ const std::unique_lock lock(Sync);
Await.emplace(std::move(easy));
Wakeup(expectedSize);
}