The wrapper just calls the test-only core write_memtable_to_sstable() overload, tests can do it on their own. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
43 lines
785 B
C++
43 lines
785 B
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>
|
|
|
|
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);
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(memtable& mt,
|
|
sstables::shared_sstable sst);
|
|
|
|
}
|