2019-07-04 06:04:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-02 07:13:14 +00:00
|
|
|
#include <base/types.h>
|
2019-07-04 06:04:31 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Result of CHECK TABLE query for single part of table
|
|
|
|
struct CheckResult
|
|
|
|
{
|
2020-08-08 00:47:03 +00:00
|
|
|
/// Part name for merge tree or file name for simpler tables
|
2019-07-04 06:04:31 +00:00
|
|
|
String fs_path;
|
|
|
|
/// Does check passed
|
2019-07-08 19:56:48 +00:00
|
|
|
bool success = false;
|
2019-07-04 06:04:31 +00:00
|
|
|
/// Failure message if any
|
|
|
|
String failure_message;
|
|
|
|
|
|
|
|
CheckResult() = default;
|
|
|
|
CheckResult(const String & fs_path_, bool success_, String failure_message_)
|
|
|
|
: fs_path(fs_path_), success(success_), failure_message(failure_message_)
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|