mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 19:35:12 +00:00
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2017-present ScyllaDB
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
|
|
// Glue logic for writing memtables to sstables
|
|
|
|
#pragma once
|
|
|
|
#include "sstables/shared_sstable.hh"
|
|
#include <seastar/core/future.hh>
|
|
#include <seastar/core/io_priority_class.hh>
|
|
|
|
class flat_mutation_reader;
|
|
class flat_mutation_reader_v2;
|
|
class reader_permit;
|
|
|
|
namespace sstables {
|
|
class sstables_manager;
|
|
class sstable_writer_config;
|
|
class write_monitor;
|
|
}
|
|
|
|
namespace replica {
|
|
|
|
class memtable;
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(flat_mutation_reader_v2 reader,
|
|
memtable& mt, sstables::shared_sstable sst,
|
|
size_t estimated_partitions,
|
|
sstables::write_monitor& monitor,
|
|
sstables::sstable_writer_config& cfg,
|
|
const seastar::io_priority_class& pc);
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(reader_permit permit,
|
|
memtable& mt,
|
|
sstables::shared_sstable sst,
|
|
sstables::write_monitor& mon,
|
|
sstables::sstable_writer_config& cfg,
|
|
const seastar::io_priority_class& pc = seastar::default_priority_class());
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(memtable& mt,
|
|
sstables::shared_sstable sst,
|
|
sstables::sstable_writer_config cfg);
|
|
|
|
}
|