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.
This commit is contained in:
parent
7ae685d032
commit
abd3c202f6
@ -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--; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user