Skip to content

Commit cef656b

Browse files
committed
Fix Windows warnings and tests for -DPLUGIN_PERFSCHEMA=NO
1 parent c3341f8 commit cef656b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mysql-test/main/mysql_upgrade_noengine.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
22
# MDEV-11942 BLACKHOLE is no longer active in 10.1 by default, mysql_upgrade not handling the situation
33
#
4+
source include/mysql_upgrade_preparation.inc;
45
source include/have_innodb.inc;
56
source include/not_embedded.inc;
67

sql/mdl.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,11 +2336,13 @@ MDL_context::acquire_lock(MDL_request *mdl_request, double lock_wait_timeout)
23362336

23372337
mysql_prlock_unlock(&lock->m_rwlock);
23382338

2339+
#ifdef HAVE_PSI_INTERFACE
23392340
PSI_metadata_locker_state state __attribute__((unused));
23402341
PSI_metadata_locker *locker= NULL;
23412342

23422343
if (ticket->m_psi != NULL)
23432344
locker= PSI_CALL_start_metadata_wait(&state, ticket->m_psi, __FILE__, __LINE__);
2345+
#endif
23442346

23452347
will_wait_for(ticket);
23462348

@@ -2387,8 +2389,10 @@ MDL_context::acquire_lock(MDL_request *mdl_request, double lock_wait_timeout)
23872389

23882390
done_waiting_for();
23892391

2392+
#ifdef HAVE_PSI_INTERFACE
23902393
if (locker != NULL)
23912394
PSI_CALL_end_metadata_wait(locker, 0);
2395+
#endif
23922396

23932397
if (wait_status != MDL_wait::GRANTED)
23942398
{

0 commit comments

Comments
 (0)