From 0bfb7b18ce9ff5fdfe76ba60dc2479c2a192a406 Mon Sep 17 00:00:00 2001 From: alesapin Date: Tue, 18 Jun 2019 14:38:04 +0300 Subject: [PATCH] Fix directory check --- dbms/src/Storages/MergeTree/MergeTreeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.cpp b/dbms/src/Storages/MergeTree/MergeTreeData.cpp index 4f8c8d67afd..4ff85ec803e 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeData.cpp +++ b/dbms/src/Storages/MergeTree/MergeTreeData.cpp @@ -212,7 +212,7 @@ std::optional MergeTreeData::IndexGranularityInfo::getMrkExtensionF if (startsWith(table_it.name(), "tmp")) continue; - if (table_it.path().isDirectory()) + if (Poco::File(table_it.path()).isDirectory()) { for (Poco::DirectoryIterator part_it(table_it.path()); part_it != end; ++part_it) {