mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
* Don't set ordering meta data for replaying transaction
* Renamed transaction prepare_for_fragment_ordering() to prepare_for_ordering()
This commit is contained in:
@ -329,7 +329,7 @@ namespace wsrep
|
|||||||
bool is_commit)
|
bool is_commit)
|
||||||
{
|
{
|
||||||
assert(state_ == s_exec);
|
assert(state_ == s_exec);
|
||||||
return transaction_.prepare_for_fragment_ordering(
|
return transaction_.prepare_for_ordering(
|
||||||
ws_handle, ws_meta, is_commit);
|
ws_handle, ws_meta, is_commit);
|
||||||
}
|
}
|
||||||
/** @} */
|
/** @} */
|
||||||
|
@ -87,9 +87,9 @@ namespace wsrep
|
|||||||
int start_transaction(const wsrep::ws_handle& ws_handle,
|
int start_transaction(const wsrep::ws_handle& ws_handle,
|
||||||
const wsrep::ws_meta& ws_meta);
|
const wsrep::ws_meta& ws_meta);
|
||||||
|
|
||||||
int prepare_for_fragment_ordering(const wsrep::ws_handle& ws_handle,
|
int prepare_for_ordering(const wsrep::ws_handle& ws_handle,
|
||||||
const wsrep::ws_meta& ws_meta,
|
const wsrep::ws_meta& ws_meta,
|
||||||
bool is_commit);
|
bool is_commit);
|
||||||
|
|
||||||
int start_replaying(const wsrep::ws_meta&);
|
int start_replaying(const wsrep::ws_meta&);
|
||||||
|
|
||||||
|
@ -155,17 +155,19 @@ int wsrep::transaction::start_transaction(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wsrep::transaction::prepare_for_fragment_ordering(
|
int wsrep::transaction::prepare_for_ordering(
|
||||||
const wsrep::ws_handle& ws_handle,
|
const wsrep::ws_handle& ws_handle,
|
||||||
const wsrep::ws_meta& ws_meta,
|
const wsrep::ws_meta& ws_meta,
|
||||||
bool is_commit)
|
bool is_commit)
|
||||||
{
|
{
|
||||||
assert(active());
|
assert(active());
|
||||||
|
|
||||||
ws_handle_ = ws_handle;
|
if (state_ != s_replaying)
|
||||||
ws_meta_ = ws_meta;
|
{
|
||||||
certified_ = is_commit;
|
ws_handle_ = ws_handle;
|
||||||
|
ws_meta_ = ws_meta;
|
||||||
|
certified_ = is_commit;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user