Extend RESET MASTER to allow specifying next binary log.
The new syntax will be:
RESET MASTER TO #next-binary-log-number#
This will set the next binary log to start with next-binary-log-number,.
If next-binary-log-number is smaller or equal to the current max log number, then the will use the max-current-log-number +1, as we normally do.
This has been filed as https://bugs.mysql.com/bug.php?id=77438 in the MYSQL bugs database.