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 fsync absence when fsync=N parameter specified #1799

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 13, 2024

  1. Make should_fsync() taking a constant.

    Make `should_fsync()` safer by using a pointer to a constant
    thread_data structure instance.
    
    Signed-off-by: Roman Sofin [email protected]
    Roman Sofin committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    656357f View commit details
    Browse the repository at this point in the history
  2. Fix final fsync absence when fsync=N specified.

    When `fsync=N` parameter specified and the final IO block issued
    happens to be Nth an fsync should follow it is missed.
    This update checks if it needs to loop again in `do_io` to issue
    that final fsync when all the IO work is done.
    
    Signed-off-by: Roman Sofin [email protected]
    Roman Sofin committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    d3396c6 View commit details
    Browse the repository at this point in the history