Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -keep_logs_by_mtime flag for purging old log files by mtime instead of ctime + bugfix #4890

Merged
merged 1 commit into from
Jun 1, 2019

Conversation

adsr
Copy link
Collaborator

@adsr adsr commented May 30, 2019

This is an alternative solution for 7864985. Purging by mtime ensures we only purge logs that haven't been written to in a while. When purging by ctime (existing behavior) we can purge a log that was created a long time ago but is still being written to today (e.g., due to low log volume).

There is also a bugfix for the existing test. Not sure it happens in real life but it affected the test.

@adsr adsr requested a review from sougou as a code owner May 30, 2019 19:31
mtime instead of ctime.

(Alternative solution for 7864985.)

Signed-off-by: Adam Saponara <as@php.net>
@sougou sougou merged commit 528fdbe into vitessio:master Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants