mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
22 lines
501 B
C++
22 lines
501 B
C++
/*
|
|
* Copyright (C) 2021-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
#pragma once
|
|
|
|
#include "raft/raft.hh"
|
|
|
|
namespace service {
|
|
|
|
// Scylla specific extension for raft state machine
|
|
// Snapshot transfer is delegated to a state machine implementation
|
|
class raft_state_machine : public raft::state_machine {
|
|
public:
|
|
virtual future<> transfer_snapshot(raft::server_id from_id, raft::snapshot_descriptor snp) = 0;
|
|
};
|
|
|
|
} // end of namespace service
|