-
Notifications
You must be signed in to change notification settings - Fork 401
Must close file before delete it #3804
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
Conversation
|
THink this need backport, no? @seisman ? |
|
No bakport. The whole file lock feature is not backported. |
|
Hmm, why not? |
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-6.1 6.1
# Navigate to the new working tree
cd .worktrees/backport-6.1
# Create a new branch
git switch --create backport-3804-to-6.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 4b8cef928eadefd38ae3f9a813e81cc79e94341f
# Push it to GitHub
git push --set-upstream origin backport-3804-to-6.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-6.1Then, create a pull request where the |
|
Given the number of bugs we are finding I think we need a 6.1.1 soon. So perhaps porting the lockfile stuff is a good decision. |
* Let libcurl downloads be managed via lockfiles (#3735) * Try to use filelock for downloads We want to avoid race conditions on gmt_data_server.txt and gmt_hash_server.txt. * Update gmt_remote.c * Delete a failing gmt_data_server.txt file so it can be regenerated If for whatever reason the gmt_data_server.txt ends up blank, reading will fail. Rather than just complain about it, we now delete the file since we (a) know it is broken and (b) unless it is removed we will not attempt to refresh it for another cycle (by default 24 hours). * Exempt URL queries from having lock files (#3768) Since the URL of a quiery is not a good file name, we do not create an advisory lock file for such downloads. Addresses #3765 hopefully. * Checked wrong string for URL (#3780) Hopefully fixes #3765. * Forgot the other place where locking occurred (#3785) Now both places where lockfiles are used avoids URL queries. Closes #3765. * Must close file before delete it (#3804) Co-authored-by: Paul Wessel <pwessel@hawaii.edu> Co-authored-by: Joaquim <jmfluis@gmail.com>
|
Then must be next only.
…Sent from my iDedo
No dia 01/08/2020, às 21:07, Paul Wessel ***@***.***> escreveu:
Given the number of bugs we are finding I think we need a 6.1.1 soon. So perhaps porting the lockfile stuff is a good decision.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Fix broken situation on Windows with the lock files where files cannot be deleted if they were not closed,