diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc index 8efb376b5b6..2643f2d6059 100644 --- a/sql/rpl_utility.cc +++ b/sql/rpl_utility.cc @@ -1117,6 +1117,7 @@ void Deferred_log_events::rewind() Log_event *ev= *(Log_event **) dynamic_array_ptr(&array, i); delete ev; } + last_added= NULL; if (array.elements > array.max_element) freeze_size(&array); reset_dynamic(&array);