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-01-13 14:53:32 +00:00
|
|
|
IMergeTreeDataPart::Checksums checkDataPart(
|
2020-02-28 17:14:55 +00:00
|
|
|
const DiskPtr & disk,
|
2020-03-10 16:57:54 +00:00
|
|
|
const String & full_relative_path,
|
2020-01-13 14:53:32 +00:00
|
|
|
const NamesAndTypesList & columns_list,
|
|
|
|
const MergeTreeDataPartType & part_type,
|
2019-03-20 16:18:13 +00:00
|
|
|
bool require_checksums,
|
|
|
|
std::function<bool()> is_cancelled = []{ return false; });
|
2014-07-22 08:21:16 +00:00
|
|
|
}
|