diff options
author | sachin <sachin.setiya@mariadb.com> | 2021-03-11 21:59:13 +0000 |
---|---|---|
committer | sachin <sachin.setiya@mariadb.com> | 2021-03-11 21:59:13 +0000 |
commit | 3ad829d31aeb56cd76331d3478a1d8e04ed7300a (patch) | |
tree | e855752cc9ed8b90b67b89b51336ac26ed977f7a /sql/log_event_server.cc | |
parent | 4b4a020d1ce15275689fc307b8d13c107e6a41be (diff) | |
download | mariadb-git-queue-v1.tar.gz |
commit 5queue-v1
Diffstat (limited to 'sql/log_event_server.cc')
-rw-r--r-- | sql/log_event_server.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/log_event_server.cc b/sql/log_event_server.cc index 148ddd87469..69afab8a5ea 100644 --- a/sql/log_event_server.cc +++ b/sql/log_event_server.cc @@ -625,7 +625,7 @@ int Log_event::do_update_pos(rpl_group_info *rgi) the actual event execution reaches that point. */ if (!rgi->is_parallel_exec || is_group_event(get_type_code())) - rli->stmt_done(log_pos, thd, rgi); + rli->stmt_done(log_pos, thd, rgi, this); } DBUG_RETURN(0); // Cannot fail currently } @@ -1859,6 +1859,13 @@ int Query_log_event::do_apply_event(rpl_group_info *rgi, goto end; } } + //Update tail ptr to end of this event + //We are freeing memory on queue(dequeue) on the time commit only + rli->mi->rpl_queue->dequeue_by_tail_ptr((uchar *)this+sizeof(*this)); + //debug info + sql_print_information("Setiya , Size of available buffer Dequeue Time%ld", + rli->mi->rpl_queue->free_size()); + } thd->table_map_for_update= (table_map)table_map_for_update; |