1
0
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:
Teemu Ollakka
2018-07-09 13:23:16 +03:00
parent 6aa6b6f50a
commit 958a916b25
3 changed files with 11 additions and 9 deletions

View File

@ -329,7 +329,7 @@ namespace wsrep
bool is_commit)
{
assert(state_ == s_exec);
return transaction_.prepare_for_fragment_ordering(
return transaction_.prepare_for_ordering(
ws_handle, ws_meta, is_commit);
}
/** @} */

View File

@ -87,7 +87,7 @@ namespace wsrep
int start_transaction(const wsrep::ws_handle& ws_handle,
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,
bool is_commit);

View File

@ -155,17 +155,19 @@ int wsrep::transaction::start_transaction(
return 0;
}
int wsrep::transaction::prepare_for_fragment_ordering(
int wsrep::transaction::prepare_for_ordering(
const wsrep::ws_handle& ws_handle,
const wsrep::ws_meta& ws_meta,
bool is_commit)
{
assert(active());
if (state_ != s_replaying)
{
ws_handle_ = ws_handle;
ws_meta_ = ws_meta;
certified_ = is_commit;
}
return 0;
}