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 #7314: Use mtime instead of ctime when tier2 FS is enabled. #7319

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

tangledbytes
Copy link
Member

@tangledbytes tangledbytes commented Jun 1, 2023

Explain the changes

This PR adds a simple flag in fs_napi which forces using mtime instead of ctime wherever appropriate. At some places use of mtime is not appropriate so in that place the check is completely skipped.

Fixes: #7314

  • Doc added/updated
  • Tests added

src/native/fs/fs_napi.cpp Outdated Show resolved Hide resolved
src/native/fs/fs_napi.cpp Outdated Show resolved Hide resolved
Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

@Utkarsh-pro See comments, I don't have a concrete suggestion for renaming the use_mtime_check option, but I think it's a bit misleading as it is right now...

@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/7314 branch 2 times, most recently from f05863c to 518db32 Compare June 6, 2023 11:19
src/native/fs/fs_napi.cpp Outdated Show resolved Hide resolved
@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/7314 branch 3 times, most recently from a14e70d to b20ded9 Compare June 6, 2023 13:38
Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

!!

    cleanup

    Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

    restructure

    Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

    remove use_mtime_check flag

    Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

    reformat ifs to conform to the style guide

    Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

    fix errenous mtime call

    Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
@guymguym guymguym merged commit 60378f0 into noobaa:master Jun 6, 2023
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip ctime check in the Tier-2 environment
2 participants