diff --git a/sql/log_event.cc b/sql/log_event.cc index 0400e605792..0f99bff526f 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -9236,6 +9236,7 @@ int Rows_log_event::do_scan_and_update(Relay_log_info const *rli) { } } while (this->get_type_code() == binary_log::UPDATE_ROWS_EVENT && table->s->primary_key >= MAX_KEY && + entry && (entry = m_hash.get(table, &m_cols))); } break;