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 the wrong detection of sync_file_range system call #9371

Merged
merged 1 commit into from
Aug 14, 2021

Conversation

ShooterIT
Copy link
Collaborator

@ShooterIT ShooterIT commented Aug 13, 2021

If we want to check defined(SYNC_FILE_RANGE_WAIT_BEFORE), we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not sync_file_range system call.
Introduced by #8532 (released in 6.0.12 and 6.2.1)

If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not `sync_file_range` system call.
Introduced by redis#8532
@ShooterIT ShooterIT requested a review from yossigo August 13, 2021 16:23
@yossigo yossigo merged commit 8edc3cd into redis:unstable Aug 14, 2021
@ShooterIT ShooterIT deleted the sync-range branch August 15, 2021 16:06
@ShooterIT
Copy link
Collaborator Author

Should we cherry pick to 6.2 @oranagra

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not `sync_file_range` system call.
Introduced by redis#8532
This was referenced Oct 4, 2021
oranagra pushed a commit that referenced this pull request Oct 4, 2021
If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not `sync_file_range` system call.
Introduced by #8532

(cherry picked from commit 8edc3cd)
oranagra pushed a commit that referenced this pull request Oct 4, 2021
If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not `sync_file_range` system call.
Introduced by #8532

(cherry picked from commit 8edc3cd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants