fixed memory leak after remove tenant

This commit is contained in:
HaHaJeff
2023-01-28 20:07:40 +08:00
committed by ob-robot
parent cdc45b3bb7
commit 79a7164fbc
2 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,6 @@ int LogIOWorker::BatchLogIOFlushLogTaskMgr::init(int64_t batch_width,
PALF_LOG(ERROR, "batch_io_task_array_ init failed", K(ret));
} else {
for (int i = 0; i < batch_width && OB_SUCC(ret); i++) {
//char *ptr = reinterpret_cast<char*>(allocator->alloc(sizeof(BatchLogIOFlushLogTask)));
char *ptr = reinterpret_cast<char*>(mtl_malloc(sizeof(BatchLogIOFlushLogTask)));
BatchLogIOFlushLogTask *io_task = NULL;
if (NULL == ptr) {

View File

@ -85,6 +85,7 @@ void ObTenantMutilAllocator::try_purge()
log_io_truncate_log_task_alloc_.purge_extra_cached_block(0);
log_io_flush_meta_task_alloc_.purge_extra_cached_block(0);
log_io_truncate_prefix_blocks_task_alloc_.purge_extra_cached_block(0);
log_io_flashback_task_alloc_.purge_extra_cached_block(0);
palf_fetch_log_task_alloc_.purge_extra_cached_block(0);
replay_log_task_alloc_.purge_extra_cached_block(0);
}