mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
remove #ifdef ENABLE_BEFORE_END_OF_MERGE_QQ
This commit is contained in:
@@ -3815,17 +3815,13 @@ static void my_malloc_size_cb_func(long long size, my_bool is_thread_specific)
|
||||
However, this should never happen, so better to assert and
|
||||
fix this.
|
||||
*/
|
||||
#ifdef ENABLE_BEFORE_END_OF_MERGE_QQ
|
||||
DBUG_ASSERT(thd);
|
||||
#endif
|
||||
if (thd)
|
||||
{
|
||||
DBUG_PRINT("info", ("memory_used: %lld size: %lld",
|
||||
(longlong) thd->status_var.memory_used, size));
|
||||
thd->status_var.memory_used+= size;
|
||||
#ifdef ENABLE_BEFORE_END_OF_MERGE_QQ
|
||||
DBUG_ASSERT((longlong) thd->status_var.memory_used >= 0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1631,9 +1631,7 @@ THD::~THD()
|
||||
{
|
||||
DBUG_PRINT("error", ("memory_used: %lld", status_var.memory_used));
|
||||
SAFEMALLOC_REPORT_MEMORY(my_thread_dbug_id());
|
||||
#ifdef ENABLE_BEFORE_END_OF_MERGE_QQ
|
||||
DBUG_ASSERT(status_var.memory_used == 0); // Ensure everything is freed
|
||||
#endif
|
||||
}
|
||||
|
||||
set_current_thd(orig_thd);
|
||||
|
Reference in New Issue
Block a user