mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-03 16:22:35 +03:00
Refactored dbms simulator. Survives SST.
This commit is contained in:
@ -5,10 +5,11 @@
|
||||
#ifndef WSREP_DB_CLIENT_HPP
|
||||
#define WSREP_DB_CLIENT_HPP
|
||||
|
||||
#include "db_client_context.hpp"
|
||||
#include "db_server_context.hpp"
|
||||
#include "db_client_service.hpp"
|
||||
#include "db_storage_engine.hpp"
|
||||
#include "db_client_context.hpp"
|
||||
#include "db_client_service.hpp"
|
||||
|
||||
|
||||
namespace db
|
||||
{
|
||||
@ -27,26 +28,25 @@ namespace db
|
||||
, replays(0)
|
||||
{ }
|
||||
};
|
||||
|
||||
client(db::server&,
|
||||
wsrep::client_id,
|
||||
enum wsrep::client_context::mode,
|
||||
const db::params&);
|
||||
|
||||
bool bf_abort(wsrep::seqno);
|
||||
const struct stats stats() const { return stats_; }
|
||||
|
||||
void store_globals() { }
|
||||
void reset_globals() { }
|
||||
void start();
|
||||
|
||||
wsrep::client_context& client_context() { return client_context_; }
|
||||
private:
|
||||
friend class db::server_context;
|
||||
template <class F> int client_command(F f);
|
||||
void run_one_transaction();
|
||||
void reset_error();
|
||||
void report_progress(size_t) const;
|
||||
wsrep::default_mutex mutex_;
|
||||
const db::params& params_;
|
||||
db::server& server_;
|
||||
db::server_context& server_context_;
|
||||
db::client_context client_context_;
|
||||
db::client_service client_service_;
|
||||
|
Reference in New Issue
Block a user