Add comment

This commit is contained in:
Kseniia Sumarokova 2023-06-15 10:22:02 +02:00 committed by GitHub
parent 827ac17dc2
commit c786fbf8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,6 +460,9 @@ public:
for (auto && key : all_keys)
{
std::optional<S3::ObjectInfo> info;
/// In case all_keys.size() > 1, avoid getting object info now
/// (it will be done anyway eventually, but with delay and in parallel).
/// But progress bar will not work in this case.
if (need_total_size && all_keys.size() == 1)
{
info = S3::getObjectInfo(client_, bucket, key, version_id_, request_settings_);