Bug #16542 "--purge-master-logs" option for mysqldump
Submitted: 16 Jan 2006 16:49 Modified: 12 Jan 2012 17:23
Reporter: Eric Martel Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: mysqldump Command-line Client Severity:S4 (Feature request)
Version:5.0.18 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[16 Jan 2006 16:49] Eric Martel
When issuing a mysqldump on a master replication server, it would be nice to be able to get rid of old and useless binary logs. For now, the only option available to do so appears to be "--delete-master-logs", which behaves like a "RESET MASTER" command; however, this option, as reported at http://bugs.mysql.com/bug.php?id=11124, can delete the last active binary log before slaves have a chance to read a CHANGE MASTER command, therefore breaking the replication.

A "--purge-master-logs" option to mysqldump, which would behave like a "PURGE MASTER LOGS", would certainly be a nice and handy option to have.

How to repeat:
(Feature request)
[12 Jan 2012 17:23] Sveta Smirnova
Thank you for the reasonable feature request.