1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00
This commit is contained in:
Brave Galera Crew
2019-01-23 15:30:00 +04:00
committed by Sergey Vojtovich
parent 382115b992
commit 36a2a185fe
791 changed files with 28035 additions and 8865 deletions

View File

@ -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;