Commit 2b554116 authored by Andrei's avatar Andrei

MDEV-27687 Assertion `!thd->rgi_fake || ...

The added by MDEV-11675 assert is incorrected assuming
a replayed from binlog transaction can't contain invoke
a FD event's apply method.

In fact it can do that through BINLOG event.
The test case like

  BEGIN;
    INSERT INTO t1 VALUES(10);
    BINLOG '
    SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8=';

is provided (by yet to merged atm) MDEV-27536 fixes.

The assert is removed.
parent fe2d90cc
......@@ -2710,7 +2710,6 @@ int Format_description_log_event::do_apply_event(rpl_group_info *rgi)
rgi->cleanup_context(thd, 1);
}
}
DBUG_ASSERT(!thd->rgi_fake || !thd->transaction->all.ha_list);
/*
If this event comes from ourselves, there is no cleaning task to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment