Commit a6f05b92 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: redundant casts in THD::dec_thread_count

and THD::inc_thread_count
parent 0d6a773a
......@@ -2083,14 +2083,14 @@ class THD :public Statement,
void dec_thread_count(void)
{
DBUG_ASSERT(thread_count > 0);
thread_safe_decrement32(const_cast<int32*>(&thread_count));
thread_safe_decrement32(&thread_count);
signal_thd_deleted();
}
void inc_thread_count(void)
{
thread_safe_increment32(const_cast<int32*>(&thread_count));
thread_safe_increment32(&thread_count);
}
public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment