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

fix deadlock on filename() call #1571

Merged
merged 2 commits into from
May 26, 2020
Merged

fix deadlock on filename() call #1571

merged 2 commits into from
May 26, 2020

Conversation

IIFE
Copy link
Contributor

@IIFE IIFE commented May 26, 2020

Fixes #1570

  • rotating-file-sink was not actually using filename() at all anyway, so remove.
  • daily-file-sink can just use file_helper_.filename()

Copy link
Owner

@gabime gabime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filename() functions should not be removed. They are part of the official API.

The fix is just a single line

 filename_t current_file = file_helper_.filename();

@IIFE
Copy link
Contributor Author

IIFE commented May 26, 2020

Didn't realise they were public. Put them back.

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.

daily_file_sink has deadlock bug
2 participants