1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Refactoring dbms simulator. Intermediate commit.

This commit is contained in:
Teemu Ollakka
2018-06-15 12:58:36 +03:00
parent cb3b2fbf9e
commit 4fbf1d0cf8
17 changed files with 771 additions and 68 deletions

38
dbsim/db_params.hpp Normal file
View File

@ -0,0 +1,38 @@
//
// Copyright (C) 2018 Codership Oy <info@codership.com>
//
#ifndef WSREP_DB_PARAMS_HPP
#define WSREP_DB_PARAMS_HPP
#include <cstddef>
#include <string>
namespace db
{
struct params
{
size_t n_servers;
size_t n_clients;
size_t n_transactions;
size_t n_rows;
size_t alg_freq;
std::string wsrep_provider;
std::string wsrep_provider_options;
int debug_log_level;
int fast_exit;
params()
: n_servers(0)
, n_clients(0)
, n_transactions(0)
, n_rows(1000)
, alg_freq(0)
, wsrep_provider()
, wsrep_provider_options()
, debug_log_level(0)
, fast_exit(0)
{ }
};
}
#endif // WSREP_DB_PARAMS_HPP