~maria-captains/maria/5.1

Viewing all changes in revision 2502.1137.214.

  • Committer: Andrei Elkin
  • Date: 2012-07-05 11:37:48 UTC
  • mto: (2502.1196.1 mysql-5.1)
  • mto: This revision was merged to the branch mainline in revision 3152.
  • Revision ID: andrei.elkin@oracle.com-20120705113748-1rracsbporayfqyx
Bug#14275000

Fixes for BUG11761686 left a flaw that managed to slip away from testing.
Only effective filtering branch was actually tested with a regression test
added to rpl_filter_tables_not_exist.
The reason of the failure is destuction of too early mem-root-allocated memory 
at the end of the deferred User-var's do_apply_event().

Fixed with bypassing free_root() in the deferred execution branch.
Deallocation of created in do_apply_event() items is done by the base code
through THD::cleanup_after_query() -> free_items() that the parent Query
can't miss.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: