aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrlolthe1st <mrlolthe1st@yandex-team.com>2023-03-02 12:02:51 +0300
committermrlolthe1st <mrlolthe1st@yandex-team.com>2023-03-02 12:02:51 +0300
commit038497b3831b3d8cd4bf2b6b4d7e35dae7dd92ea (patch)
tree122e6a7d8e76bf6db18a8e3f0fb4562b543fae19
parentc8b3fb9dab5150585defd576d83647a12a84b990 (diff)
downloadydb-038497b3831b3d8cd4bf2b6b4d7e35dae7dd92ea.tar.gz
Fix HTTPGateway bug: missed lock and removed it, race on std::queue
Fix missed lock
-rw-r--r--ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp2
1 files changed, 1 insertions, 1 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 6dba58a1d8..930f9cb7d1 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
@@ -756,7 +756,7 @@ private:
callback(TIssues{error});
return;
}
-
+ const std::unique_lock lock(Sync);
auto easy = TEasyCurlBuffer::Make(InFlight, DownloadedBytes, UploadedBytes, std::move(url), TEasyCurl::EMethod::GET, std::move(data), std::move(headers), offset, sizeLimit, std::move(callback), retryPolicy ? retryPolicy->CreateRetryState() : nullptr, InitConfig, DnsGateway.GetDNSCurlList());
Await.emplace(std::move(easy));
Wakeup(sizeLimit);