mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
Avoid double initializing ReadBufferFromS3
This commit is contained in:
parent
47252e07f3
commit
ce8e2f7f28
@ -47,7 +47,8 @@ bool ReadBufferFromS3::nextImpl()
|
||||
bool next_result = false;
|
||||
auto sleep_time_with_backoff_milliseconds = std::chrono::milliseconds(100);
|
||||
|
||||
impl = initialize();
|
||||
if (!impl)
|
||||
impl = initialize();
|
||||
|
||||
for (size_t attempt = 0; attempt < max_single_read_retries; ++attempt)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user