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
18 lines
342 B
C++
18 lines
342 B
C++
/*
|
|
* Copyright (C) 2023-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#include "debug.hh"
|
|
|
|
namespace debug {
|
|
|
|
seastar::sharded<replica::database>* volatile the_database = nullptr;
|
|
seastar::scheduling_group streaming_scheduling_group;
|
|
seastar::scheduling_group gossip_scheduling_group;
|
|
|
|
}
|