Commit abd3c202 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed build failure

Apparently DBUG_ASSERT() can co-exist with DBUG_OFF when
-DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF".

Removed assertion as it is useless now, since the type is unsigned.
parent 7ae685d0
......@@ -2152,25 +2152,13 @@ extern "C" void my_message_sql(uint error, const char *str, myf MyFlags);
It must be specified as a first base class of THD, so that increment is
done before any other THD constructors and decrement - after any other THD
destructors.
Destructor unblocks close_conneciton() if there are no more THD's left.
*/
struct THD_count
{
THD_count() { thread_count++; }
/**
Decrements thread_count.
Unblocks close_conneciton() if there are no more THD's left.
*/
~THD_count()
{
#ifndef DBUG_OFF
uint32_t t=
#endif
thread_count--;
DBUG_ASSERT(t > 0);
}
~THD_count() { thread_count--; }
};
......
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