mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
NBO applying
- High priority interface method to apply NBO begin, separate from apply_toi() in order to avoid implementation to force interpreting ws_meta flags. - Method to put client_state into NBO mode when applying NBO begin. The client_state will process in m_local mode. - Unit tests for applying NBO
This commit is contained in:
@ -137,8 +137,12 @@ namespace
|
||||
cc.open(cc.id());
|
||||
BOOST_REQUIRE(cc.before_command() == 0);
|
||||
BOOST_REQUIRE(cc.before_statement() == 0);
|
||||
wsrep::ws_handle ws_handle(wsrep::transaction_id(1), (void*)1);
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("1"), wsrep::seqno(1)),
|
||||
}
|
||||
void start_transaction(wsrep::transaction_id id,
|
||||
wsrep::seqno seqno)
|
||||
{
|
||||
wsrep::ws_handle ws_handle(id, (void*)1);
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("1"), seqno),
|
||||
wsrep::stid(sc.id(),
|
||||
wsrep::transaction_id(1),
|
||||
cc.id()),
|
||||
@ -150,6 +154,7 @@ namespace
|
||||
BOOST_REQUIRE(tc.certified() == true);
|
||||
BOOST_REQUIRE(tc.ordered() == true);
|
||||
}
|
||||
|
||||
wsrep::mock_server_service server_service;
|
||||
wsrep::mock_server_state sc;
|
||||
wsrep::mock_client cc;
|
||||
|
Reference in New Issue
Block a user