Some storage_service rpc verbs may checks that a handler is executed inside gossiper scheduling group. For that, the expected group is grabbed from database. This patch puts the gossiper sched group into debug namespace and makes this check use it from there. It removes one more place that uses database as config provider. Refs #28410 Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Closes scylladb/scylladb#28427
25 lines
422 B
C++
25 lines
422 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sharded.hh>
|
|
|
|
namespace replica {
|
|
class database;
|
|
}
|
|
|
|
namespace debug {
|
|
|
|
extern seastar::sharded<replica::database>* volatile the_database;
|
|
extern seastar::scheduling_group streaming_scheduling_group;
|
|
extern seastar::scheduling_group gossip_scheduling_group;
|
|
|
|
}
|
|
|