dbms: probably faster loading [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2013-01-17 19:39:02 +00:00
parent 2f433b28a9
commit 3238c9a5ae

View File

@ -65,9 +65,6 @@ void loadMetadata(Context & context)
/// Цикл по таблицам
for (Poco::DirectoryIterator jt(it->path()); jt != dir_end; ++jt)
{
if (jt->isDirectory())
continue;
/// Файлы имеют имена вида table_name.sql
if (jt.name().compare(jt.name().size() - 4, 4, ".sql"))
throw Exception("Incorrect file extension: " + jt.name() + " in metadata directory " + it->path(), ErrorCodes::INCORRECT_FILE_NAME);