diff --git a/dbms/src/Storages/StorageChunks.cpp b/dbms/src/Storages/StorageChunks.cpp index 514f662ca6e..801fd76a71d 100644 --- a/dbms/src/Storages/StorageChunks.cpp +++ b/dbms/src/Storages/StorageChunks.cpp @@ -91,6 +91,10 @@ void StorageChunks::loadIndex() index_loaded = true; String index_path = path + escapeForFileName(name) + "/chunks.chn"; + + if (!Poco::File(index_path).exists()) + return; + ReadBufferFromFile index(index_path, 4096); while (!index.eof()) {