Avoid double initializing ReadBufferFromS3

This commit is contained in:
Pavel Kovalenko 2021-06-17 22:31:50 +03:00
parent 47252e07f3
commit ce8e2f7f28

View File

@ -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)
{