Files
scylladb/sstables/shareable_components.hh
Nikos Dragazis 7e738bcd2d sstables: Add digest in the SSTable components
SSTables store their digest in a Digest file. Add this in the list of
SSTable components. In a follow-up patch we will use this component to
enable digest checking in the validation path.

Signed-off-by: Nikos Dragazis <nikolaos.dragazis@scylladb.com>
2024-10-03 18:09:05 +03:00

32 lines
654 B
C++

/*
* Copyright (C) 2019-present ScyllaDB
*
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <seastar/core/weak_ptr.hh>
#include "compress.hh"
#include "sstables/types.hh"
#include "utils/i_filter.hh"
namespace sstables {
// Immutable components that can be shared among shards.
struct shareable_components {
sstables::compression compression;
utils::filter_ptr filter;
sstables::summary summary;
sstables::statistics statistics;
std::optional<sstables::scylla_metadata> scylla_metadata;
weak_ptr<sstables::checksum> checksum;
std::optional<uint32_t> digest;
};
} // namespace sstables