ports/databases/mysql57-server/files/patch-sql_locks_shared__spin__lock.cc
Dima Panov ebbb2d5133 databases/mysql57-*: update to 5.7.32 GA release
Release Notes: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-34.html

PR:	255748 (based on)
MFH:	2021Q2
Approved by:	joneum@ (implicit)
2021-05-30 19:39:09 +10:00

11 lines
445 B
C++

--- sql/locks/shared_spin_lock.cc.orig 2021-05-20 11:22:55 UTC
+++ sql/locks/shared_spin_lock.cc
@@ -242,7 +242,7 @@ lock::Shared_spin_lock &lock::Shared_spin_lock::try_or
#if defined(__APPLE__)
my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self));
#else
- my_atomic_store64(&this->m_exclusive_owner, self);
+ my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self));
#endif
return (*this);
}