mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
codership/wsrep-lib#100 Support for assign_read_view() wsrep API call
Marshall the call from the `client_state` interface down to provider.
This commit is contained in:
@ -143,6 +143,10 @@ namespace wsrep
|
||||
}
|
||||
}
|
||||
|
||||
enum wsrep::provider::status
|
||||
assign_read_view(wsrep::ws_handle&, const wsrep::gtid*)
|
||||
WSREP_OVERRIDE
|
||||
{ return wsrep::provider::success; }
|
||||
int append_key(wsrep::ws_handle&, const wsrep::key&)
|
||||
WSREP_OVERRIDE
|
||||
{ return 0; }
|
||||
|
@ -68,6 +68,9 @@ BOOST_FIXTURE_TEST_CASE_TEMPLATE(transaction_1pc, T,
|
||||
BOOST_REQUIRE(tc.id() == wsrep::transaction_id(1));
|
||||
BOOST_REQUIRE(tc.state() == wsrep::transaction::s_executing);
|
||||
|
||||
// Establish default read view
|
||||
BOOST_REQUIRE(0 == cc.assign_read_view(NULL));
|
||||
|
||||
// Verify that the commit can be succesfully executed in separate command
|
||||
BOOST_REQUIRE(cc.after_statement() == 0);
|
||||
cc.after_command_before_result();
|
||||
|
Reference in New Issue
Block a user