diff options
author | mrlolthe1st <mrlolthe1st@yandex-team.com> | 2023-03-02 12:02:51 +0300 |
---|---|---|
committer | mrlolthe1st <mrlolthe1st@yandex-team.com> | 2023-03-02 12:02:51 +0300 |
commit | 038497b3831b3d8cd4bf2b6b4d7e35dae7dd92ea (patch) | |
tree | 122e6a7d8e76bf6db18a8e3f0fb4562b543fae19 | |
parent | c8b3fb9dab5150585defd576d83647a12a84b990 (diff) | |
download | ydb-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.cpp | 2 |
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); |