Bug #102288 | mysql 5.7.33 build failure | ||
---|---|---|---|
Submitted: | 19 Jan 2021 5:05 | Modified: | 21 Jan 2021 13:57 |
Reporter: | Rui Chen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.7.33 | OS: | MacOS |
Assigned to: | CPU Architecture: | x86 |
[19 Jan 2021 5:05]
Rui Chen
[21 Jan 2021 9:40]
Tor Didriksen
Fixed in 5.7.34 : Author: Tor Didriksen <tor.didriksen@oracle.com> Date: Thu Dec 17 10:01:10 2020 +0100 BUG#30519928 INTERMEDIATE MASTER WITH SEMISYNC SHOWS HIGH CPU USAGE DUE TO MUTEX SPINNING Post-push fix for 5.7: unbreak the build on macOS sql/locks/shared_spin_lock.cc:242:3: error: no matching function for call to 'my_atomic_store64' my_atomic_store64(&this->m_exclusive_owner, self); Change-Id: I374d9893d0c37d58ef5786e1ccad34b5c85d1383 diff --git a/sql/locks/shared_spin_lock.cc b/sql/locks/shared_spin_lock.cc index 7cbb948e0ac..de8becb1a62 100644 --- a/sql/locks/shared_spin_lock.cc +++ b/sql/locks/shared_spin_lock.cc @@ -239,7 +239,11 @@ lock::Shared_spin_lock &lock::Shared_spin_lock::try_or_spin_exclusive_lock( { this->spin_exclusive_lock(); } +#if defined(__APPLE__) + my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self)); +#else my_atomic_store64(&this->m_exclusive_owner, self); +#endif return (*this); }
[21 Jan 2021 13:57]
MySQL Verification Team
Thank you, Tor. Since this bug is fixed, status of this report is changed to the correct one.
[28 May 10:40]
MySQL Verification Team
Sorry Mr. Aliyu, Your link is totally unreadable.