mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22203: WSREP_ON is unnecessarily expensive to evaluate
Replaced WSREP_ON macro by single global variable WSREP_ON that is then updated at server statup and on wsrep_on and wsrep_provider update functions.
This commit is contained in:
@ -329,22 +329,6 @@ unpack_row(rpl_group_info *rgi,
|
||||
(int) (pack_ptr - old_pack_ptr)));
|
||||
if (!pack_ptr)
|
||||
{
|
||||
#ifdef WITH_WSREP
|
||||
if (WSREP_ON)
|
||||
{
|
||||
/*
|
||||
Debug message to troubleshoot bug:
|
||||
https://mariadb.atlassian.net/browse/MDEV-4404
|
||||
Galera Node throws "Could not read field" error and drops out of cluster
|
||||
*/
|
||||
WSREP_WARN("ROW event unpack field: %s metadata: 0x%x;"
|
||||
" conv_table %p conv_field %p table %s"
|
||||
" row_end: %p",
|
||||
f->field_name.str, metadata, conv_table, conv_field,
|
||||
(table_found) ? "found" : "not found", row_end
|
||||
);
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
rgi->rli->report(ERROR_LEVEL, ER_SLAVE_CORRUPT_EVENT,
|
||||
rgi->gtid_info(),
|
||||
"Could not read field '%s' of table '%s.%s'",
|
||||
|
Reference in New Issue
Block a user