mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
19 lines
414 B
C++
19 lines
414 B
C++
#pragma once
|
|
|
|
#include <Storages/MergeTree/MergeTreeData.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Calculates checksums and compares them with checksums.txt.
|
|
IMergeTreeDataPart::Checksums checkDataPart(
|
|
MergeTreeData::DataPartPtr data_part,
|
|
bool require_checksums,
|
|
std::function<bool()> is_cancelled = []{ return false; });
|
|
|
|
bool isNotEnoughMemoryErrorCode(int code);
|
|
bool isRetryableException(const Exception & e);
|
|
|
|
}
|