Allow delegate disk to handle retries for createDirectories

This commit is contained in:
Alexander Gololobov 2023-11-17 12:03:00 +01:00
parent c20f27c60c
commit 6c3793acb0

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