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

Check local sequential consistency in dbsim

- Release commit time critical section in callback
- Check the consistency inside commit order critical section

Other: Add 2pc switch to dbsim
This commit is contained in:
Teemu Ollakka
2024-11-28 12:33:21 +02:00
parent 3de594b662
commit 7994288534
8 changed files with 116 additions and 43 deletions

View File

@ -27,42 +27,27 @@ namespace db
{
struct params
{
size_t n_servers;
size_t n_clients;
size_t n_transactions;
size_t n_rows;
size_t max_data_size; // Maximum size of write set data payload.
bool random_data_size; // If true, randomize data payload size.
size_t alg_freq;
bool sync_wait;
std::string topology;
std::string wsrep_provider;
std::string wsrep_provider_options;
std::string status_file;
int debug_log_level;
int fast_exit;
int thread_instrumentation;
bool cond_checks;
int tls_service;
params()
: n_servers(0)
, n_clients(0)
, n_transactions(0)
, n_rows(1000)
, max_data_size(8)
, random_data_size(false)
, alg_freq(0)
, sync_wait(false)
, topology()
, wsrep_provider()
, wsrep_provider_options()
, status_file("status.json")
, debug_log_level(0)
, fast_exit(0)
, thread_instrumentation()
, cond_checks()
, tls_service()
{ }
size_t n_servers{0};
size_t n_clients{0};
size_t n_transactions{0};
size_t n_rows{1000};
size_t max_data_size{8}; // Maximum size of write set data payload.
bool random_data_size{false}; // If true, randomize data payload size.
/* Asymmetric lock granularity frequency. */
size_t alg_freq{0};
/* Whether to sync wait before start of transaction. */
bool sync_wait{false};
std::string topology{};
std::string wsrep_provider{};
std::string wsrep_provider_options{};
std::string status_file{"status.json"};
int debug_log_level{0};
int fast_exit{0};
int thread_instrumentation{0};
bool cond_checks{false};
int tls_service{0};
bool check_sequential_consistency{false};
bool do_2pc{false};
};
params parse_args(int argc, char** argv);