mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-13 04:01:32 +03:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
//
|
|
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
|
//
|
|
|
|
#include "db_server_context.hpp"
|
|
#include "db_server.hpp"
|
|
|
|
wsrep::client_state* db::server_context::local_client_state()
|
|
{
|
|
return server_.local_client_state();
|
|
}
|
|
|
|
wsrep::client_state* db::server_context::streaming_applier_client_state()
|
|
{
|
|
return server_.streaming_applier_client_state();
|
|
}
|
|
|
|
void db::server_context::release_client_state(
|
|
wsrep::client_state* client_state)
|
|
{
|
|
server_.release_client_state(client_state);
|
|
}
|
|
|
|
bool db::server_context::sst_before_init() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
std::string db::server_context::on_sst_required()
|
|
{
|
|
return id();
|
|
}
|
|
|
|
void db::server_context::on_sst_request(
|
|
const std::string& request, const wsrep::gtid& gtid, bool bypass)
|
|
{
|
|
server_.donate_sst(request, gtid, bypass);
|
|
}
|
|
|
|
void db::server_context::background_rollback(wsrep::client_state&)
|
|
{
|
|
}
|
|
|
|
void db::server_context::log_dummy_write_set(
|
|
wsrep::client_state&, const wsrep::ws_meta& meta)
|
|
{
|
|
wsrep::log_info() << "Dummy write set: " << meta.seqno();
|
|
}
|