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

Use File::Copy::move to attempt an atomic mirror #401

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

afresh1
Copy link
Contributor

@afresh1 afresh1 commented Dec 21, 2021

In most situations this will Just Work, but some operating systems don't support an atomic rename over an existing file and there's nothing we can do about it.

In any case, the conversation around #217 was a bit overwhelming when IMO File::Copy::move already does the right thing. I think this will fix things while documenting just enough that people will be aware of the caveats.

@oalders oalders requested a review from scop December 21, 2021 02:04
scop
scop previously approved these changes Dec 21, 2021
Copy link
Member

@scop scop left a comment

Choose a reason for hiding this comment

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

Nice, LGTM 👍

@afresh1
Copy link
Contributor Author

afresh1 commented Dec 21, 2021

Do I need to do something for that failed check?

@oalders
Copy link
Member

oalders commented Dec 21, 2021

Do I need to do something for that failed check?

You can add this to Changes:

    - Use File::Copy::move to attempt an atomic mirror (GH#401) (Andrew Fresh)

In most situations this will Just Work, but some operating systems don't
support an atomic rename over an existing file and there's nothing we
can do about it.
@afresh1
Copy link
Contributor Author

afresh1 commented Dec 22, 2021

Rebased and added the Changes

Copy link
Member

@oalders oalders left a comment

Choose a reason for hiding this comment

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

👍

@oalders oalders merged commit e410323 into libwww-perl:master Jan 21, 2022
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.

None yet

3 participants