Lines 1-11
Link Here
|
1 |
--- sql/locks/shared_spin_lock.cc.orig 2020-12-10 03:01:55 UTC |
1 |
--- sql/locks/shared_spin_lock.cc.orig 2021-05-20 11:22:55 UTC |
2 |
+++ sql/locks/shared_spin_lock.cc |
2 |
+++ sql/locks/shared_spin_lock.cc |
3 |
@@ -239,7 +239,7 @@ lock::Shared_spin_lock &lock::Shared_spin_lock::try_or |
3 |
@@ -242,7 +242,7 @@ lock::Shared_spin_lock &lock::Shared_spin_lock::try_or |
4 |
{ |
4 |
#if defined(__APPLE__) |
5 |
this->spin_exclusive_lock(); |
5 |
my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self)); |
6 |
} |
6 |
#else |
7 |
- my_atomic_store64(&this->m_exclusive_owner, self); |
7 |
- my_atomic_store64(&this->m_exclusive_owner, self); |
8 |
+ my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self)); |
8 |
+ my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self)); |
|
|
9 |
#endif |
9 |
return (*this); |
10 |
return (*this); |
10 |
} |
11 |
} |
11 |
|
|
|