2014-07-22 08:21:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Storages/MergeTree/MergeTreeData.h>
|
2014-07-22 08:21:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2020-01-13 14:53:32 +00:00
|
|
|
/// Calculates checksums and compares them with checksums.txt.
|
|
|
|
IMergeTreeDataPart::Checksums checkDataPart(
|
2019-03-20 16:18:13 +00:00
|
|
|
MergeTreeData::DataPartPtr data_part,
|
2017-12-03 00:46:34 +00:00
|
|
|
bool require_checksums,
|
|
|
|
std::function<bool()> is_cancelled = []{ return false; });
|
2014-07-22 08:21:16 +00:00
|
|
|
|
2020-04-20 01:44:24 +00:00
|
|
|
bool isNotEnoughMemoryErrorCode(int code);
|
2023-06-22 12:23:51 +00:00
|
|
|
bool isRetryableException(const Exception & e);
|
2020-04-20 01:44:24 +00:00
|
|
|
|
2014-07-22 08:21:16 +00:00
|
|
|
}
|