summaryrefslogtreecommitdiff
path: root/mysys/file_logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/file_logger.c')
-rw-r--r--mysys/file_logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/file_logger.c b/mysys/file_logger.c
index 35a077c4391..3565397c79a 100644
--- a/mysys/file_logger.c
+++ b/mysys/file_logger.c
@@ -227,7 +227,7 @@ int logger_printf(LOGGER_HANDLE *log, const char *fmt, ...)
void logger_init_mutexes()
{
#ifdef HAVE_PSI_INTERFACE
- if (PSI_server)
+ if (unlikely(PSI_server))
PSI_server->register_mutex("sql_logger", mutex_list, 1);
#endif
}