mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Provider write set handle and meta data for high priority commit
The write set handle and meta data are needed for SR transactions where the commit context is not known when the transaction starts. The passed handle and meta data can be set through client_state prepare_for_ordering() call before performing commit.
This commit is contained in:
@ -36,7 +36,7 @@ int wsrep::mock_storage_service::start_transaction(const wsrep::ws_handle& ws_ha
|
||||
int wsrep::mock_storage_service::commit(const wsrep::ws_handle& ws_handle,
|
||||
const wsrep::ws_meta& ws_meta)
|
||||
{
|
||||
int ret(client_state_.prepare_for_fragment_ordering(
|
||||
int ret(client_state_.prepare_for_ordering(
|
||||
ws_handle, ws_meta, true) ||
|
||||
client_state_.before_commit() ||
|
||||
client_state_.ordered_commit() ||
|
||||
@ -48,7 +48,7 @@ int wsrep::mock_storage_service::commit(const wsrep::ws_handle& ws_handle,
|
||||
int wsrep::mock_storage_service::rollback(const wsrep::ws_handle& ws_handle,
|
||||
const wsrep::ws_meta& ws_meta)
|
||||
{
|
||||
int ret(client_state_.prepare_for_fragment_ordering(
|
||||
int ret(client_state_.prepare_for_ordering(
|
||||
ws_handle, ws_meta, false) ||
|
||||
client_state_.before_rollback() ||
|
||||
client_state_.after_rollback());
|
||||
|
Reference in New Issue
Block a user