Merge 10.6 into 10.11

This commit is contained in:
Marko Mäkelä 2025-02-10 14:45:18 +02:00
commit 565a0cebd8
22 changed files with 345 additions and 80 deletions

View file

@ -1603,7 +1603,12 @@ bool wsrep_sync_wait (THD* thd, uint mask)
This allows autocommit SELECTs and a first SELECT after SET AUTOCOMMIT=0
TODO: modify to check if thd has locked any rows.
*/
return thd->wsrep_cs().sync_wait(-1);
if (thd->wsrep_cs().sync_wait(-1))
{
wsrep_override_error(thd, thd->wsrep_cs().current_error(),
thd->wsrep_cs().current_error_status());
return true;
}
}
return false;