Merge pull request #56905 from ClickHouse/disk_encrypted_create_dirs

Allow delegate disk to handle retries for createDirectories
This commit is contained in:
Alexander Gololobov 2023-11-21 12:51:05 +01:00 committed by GitHub
commit 8cf93fe133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,9 +60,9 @@ public:
void createDirectories(const String & path) override
{
auto tx = createEncryptedTransaction();
tx->createDirectories(path);
tx->commit();
auto wrapped_path = wrappedPath(path);
/// Delegate disk can have retry logic for recursive directory creation. Let it handle it.
delegate->createDirectories(wrapped_path);
}
void clearDirectory(const String & path) override