mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Galera4
This commit is contained in:
committed by
Sergey Vojtovich
parent
382115b992
commit
36a2a185fe
@ -551,8 +551,26 @@ static uchar *net_store_length_fast(uchar *packet, size_t length)
|
||||
|
||||
void Protocol::end_statement()
|
||||
{
|
||||
/* sanity check*/
|
||||
DBUG_ASSERT_IF_WSREP(!(WSREP(thd) && thd->wsrep_conflict_state == REPLAYING));
|
||||
#ifdef WITH_WSREP
|
||||
/*
|
||||
Commented out: This sanity check does not hold in general.
|
||||
Thd->LOCK_thd_data() must be unlocked before sending response
|
||||
to client, so BF abort may sneak in here.
|
||||
DBUG_ASSERT(!WSREP(thd) || thd->wsrep_conflict_state() == NO_CONFLICT);
|
||||
*/
|
||||
|
||||
/*
|
||||
sanity check, don't send end statement while replaying
|
||||
*/
|
||||
DBUG_ASSERT(thd->wsrep_trx().state() != wsrep::transaction::s_replaying);
|
||||
if (WSREP(thd) && thd->wsrep_trx().state() ==
|
||||
wsrep::transaction::s_replaying)
|
||||
{
|
||||
WSREP_ERROR("attempting net_end_statement while replaying");
|
||||
return;
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
DBUG_ENTER("Protocol::end_statement");
|
||||
DBUG_ASSERT(! thd->get_stmt_da()->is_sent());
|
||||
bool error= FALSE;
|
||||
|
Reference in New Issue
Block a user