[MDEV-19116] Speed up rotation of binary logs Created: 2019-04-01  Updated: 2023-11-17  Due: 2019-04-01  Resolved: 2019-04-02

Status: Closed
Project: MariaDB Server
Component/s: Replication
Fix Version/s: 10.4.4

Type: Task Priority: Major
Reporter: Michael Widenius Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-18614 Optimization for binlog rotation Closed

 Description   

Speed up rotation of binary logs when there are 10,000 logs

The problem is that find_uniq_filename() for each creating of a new binary log file reads all files from the directory, which can take a long time if there are a lot of binary log files.

Fix is to cache the last used log name number and reuse that for future calls.



 Comments   
Comment by Michael Widenius [ 2019-04-02 ]

Pushed

Generated at Thu Feb 08 08:49:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.