mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
27 lines
702 B
C++
27 lines
702 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; });
|
|
|
|
IMergeTreeDataPart::Checksums checkDataPart(
|
|
const DiskPtr & disk,
|
|
const String & full_relative_path,
|
|
const NamesAndTypesList & columns_list,
|
|
const MergeTreeDataPartType & part_type,
|
|
const NameSet & files_without_checksums,
|
|
bool require_checksums,
|
|
std::function<bool()> is_cancelled = []{ return false; });
|
|
|
|
bool isNotEnoughMemoryErrorCode(int code);
|
|
|
|
}
|