Skip to content

Commit e40326a

Browse files
authored
Merge pull request ClickHouse#78860 from jkartseva/azure-remove-redundant-list
Remove redundant ListBlobs calls in AzureBlobStorage
2 parents 7d12de2 + 02dc6f6 commit e40326a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Disks/ObjectStorages/AzureBlobStorage/AzureObjectStorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ class AzureIteratorAsync final : public IObjectStorageIteratorAsync
7171
if (client->IsClientForDisk())
7272
ProfileEvents::increment(ProfileEvents::DiskAzureListObjects);
7373

74-
batch.clear();
75-
auto outcome = client->ListBlobs(options);
74+
chassert(batch.empty());
7675
auto blob_list_response = client->ListBlobs(options);
7776
auto blobs_list = blob_list_response.Blobs;
77+
batch.reserve(blobs_list.size());
7878

7979
for (const auto & blob : blobs_list)
8080
{

0 commit comments

Comments
 (0)