mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-24 10:42:31 +03:00
Add provider position field to ws_meta and view
Provider position is needed in coordinated recovery between application and provider. Pass the position info from provider to application to allow making it durable.
This commit is contained in:
@ -103,13 +103,11 @@ BOOST_FIXTURE_TEST_CASE(test_applying_nbo,
|
||||
wsrep::ws_handle ws_handle(wsrep::transaction_id::undefined(), (void*)(1));
|
||||
const int nbo_begin_flags(wsrep::provider::flag::start_transaction |
|
||||
wsrep::provider::flag::isolation);
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("cluster1"),
|
||||
wsrep::seqno(1)),
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("cluster1"), wsrep::seqno(1)),
|
||||
wsrep::stid(wsrep::id("s1"),
|
||||
wsrep::transaction_id::undefined(),
|
||||
wsrep::client_id(1)),
|
||||
wsrep::seqno(0),
|
||||
nbo_begin_flags);
|
||||
wsrep::seqno(0), nbo_begin_flags, 0);
|
||||
std::string nbo_begin("nbo_begin");
|
||||
BOOST_REQUIRE(sc.on_apply(hps, ws_handle, ws_meta,
|
||||
wsrep::const_buffer(nbo_begin.data(),
|
||||
@ -156,13 +154,11 @@ BOOST_FIXTURE_TEST_CASE(test_applying_nbo_fail,
|
||||
wsrep::ws_handle ws_handle(wsrep::transaction_id::undefined(), (void*)(1));
|
||||
const int nbo_begin_flags(wsrep::provider::flag::start_transaction |
|
||||
wsrep::provider::flag::isolation);
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("cluster1"),
|
||||
wsrep::seqno(1)),
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("cluster1"), wsrep::seqno(1)),
|
||||
wsrep::stid(wsrep::id("s1"),
|
||||
wsrep::transaction_id::undefined(),
|
||||
wsrep::client_id(1)),
|
||||
wsrep::seqno(0),
|
||||
nbo_begin_flags);
|
||||
wsrep::seqno(0), nbo_begin_flags, 0);
|
||||
std::string nbo_begin("nbo_begin");
|
||||
hps.fail_next_toi_ = true;
|
||||
BOOST_REQUIRE(sc.on_apply(hps, ws_handle, ws_meta,
|
||||
|
Reference in New Issue
Block a user