sstables: move compaction_stats to header file

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
This commit is contained in:
Raphael S. Carvalho
2015-11-30 22:24:45 -02:00
parent a2eac711cf
commit ac1a67c8bc
2 changed files with 9 additions and 9 deletions

View File

@@ -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;

View File

@@ -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.