提交 2ff0b625 编写于 作者: M Michael Kolupaev

Merge

上级 30db4e41
......@@ -299,8 +299,8 @@ public:
if (!Poco::File(path).exists())
return false;
ReadBufferFromFile file(path, std::min(static_cast<size_t>(DBMS_DEFAULT_BUFFER_SIZE), Poco::File(path).getSize()));
checksums.readText(file);
assertEOF(file);
if (checksums.readText(file))
assertEOF(file);
return true;
}
};
......
......@@ -877,7 +877,7 @@ bool MergeTreeData::DataPart::Checksums::readText(ReadBuffer & in)
throw Exception("Bad checksums format version: " + DB::toString(format_version), ErrorCodes::UNKNOWN_FORMAT);
if (format_version == 1)
return false;
DB::assertString("\n",in);
DB::assertString("\n", in);
DB::readText(count, in);
DB::assertString(" files:\n", in);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册