mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
MDEV-23399 fixup: Use plain pthread_cond
The condition variables that were introduced in
commit 7cffb5f6e8 (MDEV-23399)
are never instrumented with PERFORMANCE_SCHEMA.
Let us avoid the storage overhead and dead code.
This commit is contained in:
parent
7ce643782b
commit
4f4a4cf9eb
8 changed files with 49 additions and 47 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
Copyright (c) 2008, Google Inc.
|
||||
Copyright (c) 2009, Percona Inc.
|
||||
Copyright (c) 2013, 2020, MariaDB Corporation.
|
||||
Copyright (c) 2013, 2021, MariaDB Corporation.
|
||||
|
||||
Portions of this file contain modifications contributed and copyrighted by
|
||||
Google, Inc. Those modifications are gratefully acknowledged and are described
|
||||
|
|
@ -2017,9 +2017,9 @@ void innodb_shutdown()
|
|||
}
|
||||
mysql_mutex_lock(&buf_pool.flush_list_mutex);
|
||||
while (buf_page_cleaner_is_active) {
|
||||
mysql_cond_signal(&buf_pool.do_flush_list);
|
||||
mysql_cond_wait(&buf_pool.done_flush_list,
|
||||
&buf_pool.flush_list_mutex);
|
||||
pthread_cond_signal(&buf_pool.do_flush_list);
|
||||
my_cond_wait(&buf_pool.done_flush_list,
|
||||
&buf_pool.flush_list_mutex.m_mutex);
|
||||
}
|
||||
mysql_mutex_unlock(&buf_pool.flush_list_mutex);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue