This commit is contained in:
Alexey Milovidov 2024-07-22 17:10:39 +02:00
parent ab426ad25e
commit 660530c611

View File

@ -258,10 +258,9 @@ std::optional<size_t> ReadBufferFromAzureBlobStorage::tryGetFileSize()
if (!blob_client)
blob_client = std::make_unique<Azure::Storage::Blobs::BlobClient>(blob_container_client->GetBlobClient(path));
if (file_size.has_value())
return *file_size;
if (!file_size)
file_size = blob_client->GetProperties().Value.BlobSize;
file_size = blob_client->GetProperties().Value.BlobSize;
return *file_size;
}