1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-10-18 00:31:19 +03:00

SST sent/received impls for mock provider, added assertions

This commit is contained in:
Teemu Ollakka
2018-05-06 15:43:07 +03:00
parent e7cabb713f
commit abf8ef34fc
3 changed files with 25 additions and 15 deletions

View File

@@ -57,7 +57,7 @@ public:
dbms_storage_engine()
: mutex_()
, transactions_()
, alg_freq_(100)
, alg_freq_(0)
, bf_aborts_()
{ }
@@ -343,6 +343,7 @@ private:
}
int commit(trrep::transaction_context& transaction_context) override
{
assert(mode() == trrep::client_context::m_applier);
int ret(0);
ret = transaction_context.before_commit();
ret = ret || transaction_context.ordered_commit();
@@ -461,7 +462,7 @@ private:
void report_progress(size_t i) const
{
if ((i % 100) == 0)
if ((i % 1000) == 0)
{
trrep::log() << "client: " << id().get()
<< " transactions: " << i