mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 14:03:06 +00:00
Instead of lengthy blurbs, switch to single-line, machine-readable standardized (https://spdx.dev) license identifiers. The Linux kernel switched long ago, so there is strong precedent. Three cases are handled: AGPL-only, Apache-only, and dual licensed. For the latter case, I chose (AGPL-3.0-or-later and Apache-2.0), reasoning that our changes are extensive enough to apply our license. The changes we applied mechanically with a script, except to licenses/README.md. Closes #9937
48 lines
1.1 KiB
C++
48 lines
1.1 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 memtable;
|
|
class flat_mutation_reader;
|
|
|
|
namespace sstables {
|
|
class sstables_manager;
|
|
class sstable_writer_config;
|
|
class write_monitor;
|
|
}
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(flat_mutation_reader 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);
|