Update StorageTableFunction.h

This commit is contained in:
Kseniia Sumarokova 2021-09-01 00:06:10 +03:00 committed by GitHub
parent 185d29439b
commit 437c87fff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,7 @@ public:
StoragePolicyPtr getStoragePolicy() const override
{
std::lock_guard lock{nested_mutex};
if (nested)
return StorageProxy::getStoragePolicy();
return IStorage::getStoragePolicy();