mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-27 09:01:50 +03:00
Enhanced dbsim to store view and position in storage engine
Mimic real DBMS implementation by storing view and position into storage engine.
This commit is contained in:
@ -73,15 +73,23 @@ db::params db::parse_args(int argc, char** argv)
|
||||
"debug logging level: 0 - none, 1 - verbose")
|
||||
("fast-exit", po::value<int>(¶ms.fast_exit),
|
||||
"exit from simulation without graceful shutdown");
|
||||
po::variables_map vm;
|
||||
po::store(po::parse_command_line(argc, argv, desc), vm);
|
||||
po::notify(vm);
|
||||
if (vm.count("help"))
|
||||
try
|
||||
{
|
||||
po::variables_map vm;
|
||||
po::store(po::parse_command_line(argc, argv, desc), vm);
|
||||
po::notify(vm);
|
||||
if (vm.count("help"))
|
||||
{
|
||||
std::cerr << desc << "\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
validate_params(params);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
std::cerr << desc << "\n";
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
validate_params(params);
|
||||
return params;
|
||||
}
|
||||
|
Reference in New Issue
Block a user