mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 06:23:03 +00:00
sstables: move compaction_stats to header file
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
This commit is contained in:
@@ -64,15 +64,6 @@ namespace sstables {
|
||||
|
||||
logging::logger logger("compaction");
|
||||
|
||||
struct compaction_stats {
|
||||
size_t sstables = 0;
|
||||
uint64_t start_size = 0;
|
||||
uint64_t end_size = 0;
|
||||
uint64_t total_partitions = 0;
|
||||
uint64_t total_keys_written = 0;
|
||||
std::vector<shared_sstable> new_sstables;
|
||||
};
|
||||
|
||||
class sstable_reader final : public ::mutation_reader::impl {
|
||||
shared_sstable _sst;
|
||||
mutation_reader _reader;
|
||||
|
||||
@@ -46,6 +46,15 @@ namespace sstables {
|
||||
: sstables(std::move(sstables)) {}
|
||||
};
|
||||
|
||||
struct compaction_stats {
|
||||
size_t sstables = 0;
|
||||
uint64_t start_size = 0;
|
||||
uint64_t end_size = 0;
|
||||
uint64_t total_partitions = 0;
|
||||
uint64_t total_keys_written = 0;
|
||||
std::vector<shared_sstable> new_sstables;
|
||||
};
|
||||
|
||||
// Compact a list of N sstables into M sstables.
|
||||
// creator is used to get a sstable object for a new sstable that will be written.
|
||||
// max_sstable_size is a relaxed limit size for a sstable to be generated.
|
||||
|
||||
Reference in New Issue
Block a user