Update src/Storages/StorageS3.cpp

Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
This commit is contained in:
Kruglov Pavel 2024-04-12 14:23:39 +02:00 committed by GitHub
parent 9628874ac1
commit eaa436ae9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1018,7 +1018,7 @@ public:
auto partition_key = replaceWildcards(key, partition_id);
validateKey(partition_key);
if (auto new_key = checkFileExistsAndCreateNewKeyIfNeeded(getContext(), configuration, partition_key, 1))
if (auto new_key = checkFileExistsAndCreateNewKeyIfNeeded(getContext(), configuration, partition_key, /* sequence_number */1))
partition_key = *new_key;
return std::make_shared<StorageS3Sink>(