1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-7437 remove suport for "atomics" with rwlocks

This commit is contained in:
Sergei Golubchik
2015-01-12 17:03:45 +01:00
parent 1f0ad6c6b3
commit e695db0f2d
40 changed files with 143 additions and 740 deletions

View File

@@ -2061,7 +2061,7 @@ public:
thd.security_ctx->user= thd.security_ctx->host=0;
delayed_insert_threads--;
mysql_mutex_unlock(&LOCK_thread_count);
thread_safe_decrement32(&thread_count, &thread_count_lock);
thread_safe_decrement32(&thread_count);
mysql_cond_broadcast(&COND_thread_count); /* Tell main we are ready */
}
@@ -2197,7 +2197,7 @@ bool delayed_get_table(THD *thd, MDL_request *grl_protection_request,
if (!(di= new Delayed_insert()))
goto end_create;
thread_safe_increment32(&thread_count, &thread_count_lock);
thread_safe_increment32(&thread_count);
/*
Annotating delayed inserts is not supported.