mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
In that level no io_priority_class-es exist. Instead, all the IO happens in the context of current sched-group. File API no longer accepts prio class argument (and makes io_intent arg mandatory to impls). So the change consists of - removing all usage of io_priority_class - patching file_impl's inheritants to updated API - priority manager goes away altogether - IO bandwidth update is performed on respective sched group - tune-up scylla-gdb.py io_queues command The first change is huge and was made semi-autimatically by: - grep io_priority_class | default_priority_class - remove all calls, found methods' args and class' fields Patching file_impl-s is smaller, but also mechanical: - replace io_priority_class& argument with io_intent* one - pass intent to lower file (if applicatble) Dropping the priority manager is: - git-rm .cc and .hh - sed out all the #include-s - fix configure.py and cmakefile The scylla-gdb.py update is a bit hairry -- it needs to use task queues list for IO classes names and shares, but to detect it should it checks for the "commitlog" group is present. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Closes #13963
51 lines
1.0 KiB
C++
51 lines
1.0 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>
|
|
|
|
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(reader_permit permit,
|
|
memtable& mt,
|
|
sstables::shared_sstable sst,
|
|
sstables::write_monitor& mon,
|
|
sstables::sstable_writer_config& cfg);
|
|
|
|
seastar::future<>
|
|
write_memtable_to_sstable(memtable& mt,
|
|
sstables::shared_sstable sst,
|
|
sstables::sstable_writer_config cfg);
|
|
|
|
}
|