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 9f018c3 + fc2ed1d commit f2c4180Copy full SHA for f2c4180
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