Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A second round of 0.23 maint updates #3349

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

Merged
merged 10 commits into from
Aug 3, 2015
Merged

A second round of 0.23 maint updates #3349

merged 10 commits into from
Aug 3, 2015

Conversation

carlosmn
Copy link
Member

@carlosmn carlosmn commented Aug 3, 2015

We should also take the submodule fixes for staging and the filebuf rename one when those get merged.

carlosmn and others added 10 commits August 3, 2015 10:32
An error here will typically mean that the directory was removed between
the time we iterated the parent and the time we wanted to visit it in
which case we should ignore it.

Other kinds of errors such as permissions (or transient errors) also
better dealt with by pretending we didn't see it.
We don't want the iterator to make us stop whenever we hit an unreadable
dir. We should instead move over to the next item.
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
For such a path '/~/...' the leading '/' is stripped so the server will
get a path starting with '~' and correctly handle it.
When we fail to rename, we currently leave the lockfile laying
around. This shows that behaviour.
When we have an error renaming the lockfile, we need to make sure
that we remove it upon cleanup. For this, we need to keep track of
whether we opened the file and whether the rename succeeded.

If we did create the lockfile but the rename did not succeed, we
remove the lockfile. This won't protect against all errors, but
the most common ones (target file is open) does get handled.
carlosmn added a commit that referenced this pull request Aug 3, 2015
A second round of 0.23 maint updates
@carlosmn carlosmn merged commit 5915a2a into maint/v0.23 Aug 3, 2015
@carlosmn carlosmn deleted the cmn/for-v23 branch August 3, 2015 17:46
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.

6 participants