mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
34 lines
651 B
C++
34 lines
651 B
C++
/*
|
|
* Copyright (C) 2025-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "service/raft/raft_state_machine.hh"
|
|
#include "mutation/frozen_mutation.hh"
|
|
#include "locator/tablets.hh"
|
|
|
|
namespace db {
|
|
class system_keyspace;
|
|
}
|
|
|
|
namespace service {
|
|
class migration_manager;
|
|
}
|
|
|
|
namespace service::strong_consistency {
|
|
|
|
struct raft_command {
|
|
frozen_mutation mutation;
|
|
};
|
|
std::unique_ptr<raft_state_machine> make_state_machine(locator::global_tablet_id tablet,
|
|
raft::group_id gid,
|
|
replica::database& db,
|
|
service::migration_manager& mm,
|
|
db::system_keyspace& sys_ks);
|
|
|
|
} |