mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-7955 WSREP() appears on radar in OLTP RO
This commit is for optimizing WSREP(thd) macro. #define WSREP(thd) \ (WSREP_ON && wsrep && (thd && thd->variables.wsrep_on)) In this we can safely remove wsrep and thd. We are not removing WSREP_ON because this will change WSREP(thd) behaviour. Patch Credit:- Nirbhay Choubay, Sergey Vojtovich
This commit is contained in:
@@ -2624,7 +2624,7 @@ mysql_execute_command(THD *thd)
|
||||
} /* endif unlikely slave */
|
||||
#endif
|
||||
#ifdef WITH_WSREP
|
||||
if (WSREP(thd))
|
||||
if (wsrep && WSREP(thd))
|
||||
{
|
||||
/*
|
||||
change LOCK TABLE WRITE to transaction
|
||||
|
||||
Reference in New Issue
Block a user