mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-21 12:22:06 +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:
@ -58,13 +58,10 @@ void wsrep_test::terminate_streaming_applier(
|
||||
mc.before_command();
|
||||
wsrep::mock_high_priority_service hps(sc, &mc, false);
|
||||
wsrep::ws_handle ws_handle(transaction_id, (void*)(1));
|
||||
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("cluster1"),
|
||||
wsrep::seqno(100)),
|
||||
wsrep::stid(server_id,
|
||||
transaction_id,
|
||||
wsrep::client_id(1)),
|
||||
wsrep::seqno(0),
|
||||
wsrep::provider::flag::rollback);
|
||||
wsrep::ws_meta ws_meta(
|
||||
wsrep::gtid(wsrep::id("cluster1"), wsrep::seqno(100)),
|
||||
wsrep::stid(server_id, transaction_id, wsrep::client_id(1)),
|
||||
wsrep::seqno(0), wsrep::provider::flag::rollback, 0);
|
||||
wsrep::const_buffer data(0, 0);
|
||||
sc.on_apply(hps, ws_handle, ws_meta, data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user