Deprecate and obsolete max_binlog_files with binlog_space_limit

Description

The max_binlog_files feature wasn't thought through well enough and has
a couple of important drawbacks:

  • it is inconsistent with a similar variable for relay logs
    (--relay-log-space-limit). It's reasonable to implement a similar
    variable for binary logs with the same semantics.

  • max_binlog_files is hard (and sometimes dangerous) to use in practice,
    because server restarts and FLUSH LOGS make the server start new
    files, rendering the variable useless from the user perspective.

We should deprecate max_binlog_files and introduce max_binlog_space

(binlog_space_limit?) that would obsolete max_binlog_files.

5.7 will have an upgrade path from that (both max_binlog_files and binlog_space_limit)
8.0 will have only binlog_space_limit

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Time tracking

4d 6h 34m logged

Affects versions

Priority

Smart Checklist

Created December 20, 2017 at 3:49 PM
Updated February 13, 2020 at 7:35 PM
Resolved August 24, 2018 at 10:36 AM