Make mysqlbinlog omit redundant `use` around BEGIN/SAVEPOINT/COMMIT/ROLLBACK in 5.0 binlogs

Bug #929521 reported by Oleg Tsarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Fix Released
Low
Unassigned
5.5
Triaged
Low
Unassigned
5.6
Triaged
Low
Unassigned
5.7
Triaged
Low
Unassigned

Bug Description

Make mysqlbinlog omit redundant `use` around BEGIN/SAVEPOINT/COMMIT/ROLLBACK in 5.0 binlogs.
This is a merge of lp:percona-server/rnt-5.1 patch mysqlbinlog_fix.patch.

MySQL 5.0 does not flag BEGIN/SAVEPOINT/COMMIT/ROLLBACK statements in its binlogs with LOG_EVENT_SUPPRESS_USE_F like 5.1+ does. This causes unnecessary `use` statements around such statements when the binlog is dumped by mysqlbinlog.

Fix by always suppressing the output of `use` for these statements.

Related branches

Oleg Tsarev (tsarev)
no longer affects: percona-server/5.5
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Marking as Invalid for 5.5 based on "no longer affects: percona-server/5.5 "

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Raghu - that is not enough evidence to mark as "Invalid" for 5.5. is this implemented in the 5.5 upstream? Then it's either "Fix Released" or indeed "Invalid." Is this not implemented in 5.5? Then it needs a triage to "Won't Fix", "Wishlist" or "Low"/"Medium"/etc.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

I think it still affects 5.5. The patch has not been merged to PS 5.5, and the test case modified by the patch in 5.1. still shows the redundant USE statements in the 5.5 tree.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

@Laurynas @Alexey, sorry about that. I will test it and update it here.

By the way, I noticed a "Diff: 5486343 lines (has conflicts) " for percona-server merge, I wonder what that is :)

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Raghu - it was the 5.1 branch proposed to merge to Percona Server 5.5 erroneously.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1904

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.