mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-22 23:21:53 +03:00
Address review comments
Removed unnecessary assertion in transaction::before_commit(). Assert client state and mode in client_state::xa_detach().
This commit is contained in:
@ -601,6 +601,8 @@ namespace wsrep
|
|||||||
*/
|
*/
|
||||||
void xa_detach()
|
void xa_detach()
|
||||||
{
|
{
|
||||||
|
assert(mode_ == m_local);
|
||||||
|
assert(state_ == s_none || state_ == s_exec);
|
||||||
transaction_.xa_detach();
|
transaction_.xa_detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -484,7 +484,6 @@ int wsrep::transaction::before_commit()
|
|||||||
|
|
||||||
if (ret == 0 && state() == s_prepared)
|
if (ret == 0 && state() == s_prepared)
|
||||||
{
|
{
|
||||||
assert(state() == s_prepared);
|
|
||||||
ret = certify_commit(lock);
|
ret = certify_commit(lock);
|
||||||
assert((ret == 0 && state() == s_committing) ||
|
assert((ret == 0 && state() == s_committing) ||
|
||||||
(state() == s_must_abort ||
|
(state() == s_must_abort ||
|
||||||
|
Reference in New Issue
Block a user