@@ -273,8 +273,8 @@ int wsrep::transaction::after_row()
273
273
return ret;
274
274
}
275
275
276
- int wsrep::transaction::before_prepare (
277
- wsrep::unique_lock<wsrep::mutex>& lock )
276
+ int wsrep::transaction::before_prepare (wsrep::unique_lock<wsrep::mutex>& lock,
277
+ const wsrep::provider:: seq_cb_t * seq_cb )
278
278
{
279
279
assert (lock.owns_lock ());
280
280
int ret (0 );
@@ -349,7 +349,7 @@ int wsrep::transaction::before_prepare(
349
349
}
350
350
else
351
351
{
352
- ret = certify_commit (lock);
352
+ ret = certify_commit (lock, seq_cb );
353
353
}
354
354
355
355
assert ((ret == 0 && state () == s_preparing) ||
@@ -445,7 +445,7 @@ int wsrep::transaction::after_prepare(
445
445
return ret;
446
446
}
447
447
448
- int wsrep::transaction::before_commit ()
448
+ int wsrep::transaction::before_commit (const wsrep::provider::seq_cb* seq_cb )
449
449
{
450
450
int ret (1 );
451
451
@@ -465,7 +465,7 @@ int wsrep::transaction::before_commit()
465
465
case wsrep::client_state::m_local:
466
466
if (state () == s_executing)
467
467
{
468
- ret = before_prepare (lock) || after_prepare (lock);
468
+ ret = before_prepare (lock, seq_cb ) || after_prepare (lock);
469
469
assert ((ret == 0 &&
470
470
(state () == s_committing || state () == s_prepared))
471
471
||
@@ -495,7 +495,7 @@ int wsrep::transaction::before_commit()
495
495
496
496
if (ret == 0 && state () == s_prepared)
497
497
{
498
- ret = certify_commit (lock);
498
+ ret = certify_commit (lock, nullptr );
499
499
assert ((ret == 0 && state () == s_committing) ||
500
500
(state () == s_must_abort ||
501
501
state () == s_must_replay ||
@@ -543,7 +543,7 @@ int wsrep::transaction::before_commit()
543
543
}
544
544
else if (state () == s_executing || state () == s_replaying)
545
545
{
546
- ret = before_prepare (lock) || after_prepare (lock);
546
+ ret = before_prepare (lock, nullptr ) || after_prepare (lock);
547
547
}
548
548
else
549
549
{
@@ -1195,7 +1195,7 @@ int wsrep::transaction::commit_or_rollback_by_xid(const wsrep::xid& xid,
1195
1195
provider ().certify (client_state_.id (),
1196
1196
ws_handle_,
1197
1197
flags (),
1198
- meta));
1198
+ meta, nullptr ));
1199
1199
1200
1200
int ret;
1201
1201
if (cert_ret == wsrep::provider::success)
@@ -1622,7 +1622,7 @@ int wsrep::transaction::certify_fragment(
1622
1622
cert_ret = provider ().certify (client_state_.id (),
1623
1623
ws_handle_,
1624
1624
flags (),
1625
- sr_ws_meta);
1625
+ sr_ws_meta, nullptr );
1626
1626
client_service_.debug_crash (
1627
1627
" crash_replicate_fragment_after_certify" );
1628
1628
@@ -1744,7 +1744,7 @@ int wsrep::transaction::certify_fragment(
1744
1744
}
1745
1745
1746
1746
int wsrep::transaction::certify_commit (
1747
- wsrep::unique_lock<wsrep::mutex>& lock)
1747
+ wsrep::unique_lock<wsrep::mutex>& lock, const provider:: seq_cb_t * seq_cb )
1748
1748
{
1749
1749
assert (lock.owns_lock ());
1750
1750
assert (active ());
@@ -1828,7 +1828,7 @@ int wsrep::transaction::certify_commit(
1828
1828
cert_ret (provider ().certify (client_state_.id (),
1829
1829
ws_handle_,
1830
1830
flags (),
1831
- ws_meta_));
1831
+ ws_meta_, seq_cb ));
1832
1832
client_service_.debug_sync (" wsrep_after_certification" );
1833
1833
1834
1834
lock.lock ();
0 commit comments