Skip to content

Commit 5144861

Browse files
authored
Merge pull request #475 from grooverdan/10.2-no_recv_sys_mem_free
innodb: remove recv_sys_mem_free - unused
2 parents e99c7c8 + 91dc18d commit 5144861

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

storage/innobase/log/log0recv.cc

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -452,35 +452,6 @@ recv_sys_close()
452452
recv_spaces.clear();
453453
}
454454

455-
/********************************************************//**
456-
Frees the recovery system memory. */
457-
void
458-
recv_sys_mem_free(void)
459-
/*===================*/
460-
{
461-
if (recv_sys != NULL) {
462-
if (recv_sys->addr_hash != NULL) {
463-
hash_table_free(recv_sys->addr_hash);
464-
}
465-
466-
if (recv_sys->heap != NULL) {
467-
mem_heap_free(recv_sys->heap);
468-
}
469-
470-
if (recv_sys->flush_start != NULL) {
471-
os_event_destroy(recv_sys->flush_start);
472-
}
473-
474-
if (recv_sys->flush_end != NULL) {
475-
os_event_destroy(recv_sys->flush_end);
476-
}
477-
478-
ut_free(recv_sys->buf);
479-
ut_free(recv_sys);
480-
recv_sys = NULL;
481-
}
482-
}
483-
484455
/************************************************************
485456
Reset the state of the recovery system variables. */
486457
void

0 commit comments

Comments
 (0)