We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64f6c78 + 627ae8c commit fc2ed1dCopy full SHA for fc2ed1d
storage/innobase/clone/clone0repl.cc
@@ -632,6 +632,12 @@ void Clone_persist_gtid::periodic_write() {
632
os_event_reset(m_event);
633
/* Write accumulated GTIDs to disk table */
634
flush_gtids(thd);
635
+ /* Memory is allocated from thd->memroot to store the information about the
636
+ table being locked for flushing gtids. In this case, being a background
637
+ thread which is flushing the gtids every 100 millisecond, we should release
638
+ the memory after every cycle of flushing gtids to avoid memory growth in
639
+ Clone_persist_gtid thread .*/
640
+ thd->mem_root->ClearForReuse();
641
}
642
643
/* For slow shutdown, consume remaining GTIDs so that undo can be purged. */
0 commit comments