mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fixed errors in the calls of the macros my_atomic_rwlock_wrlock, my_atomic_rwlock_wrunlock.
This commit is contained in:
parent
6eace757e9
commit
e13cd5abc1
1 changed files with 2 additions and 2 deletions
|
@ -147,9 +147,9 @@ inline void store_address_if_first(void **dest, void **src, bool is_safe)
|
|||
else
|
||||
{
|
||||
char *null= NULL;
|
||||
my_atomic_rwlock_wrlock(statistics_lock);
|
||||
my_atomic_rwlock_wrlock(&statistics_lock);
|
||||
my_atomic_casptr(dest, (void **) &null, *src)
|
||||
my_atomic_rwlock_wrunlock(statistics_lock);
|
||||
my_atomic_rwlock_wrunlock(&statistics_lock);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue