avoid redundant freezeContent call
This opens the potential for the object file to be in place but git-annex is interrupted before it can freeze it. git-annex fsck already fixes that situation, which can also occur when lockContentForRemoval thaws content. Also improve comment to not be Windows-specific.
This commit is contained in:
parent
0db7297f00
commit
669037862a
4 changed files with 28 additions and 3 deletions
|
@ -37,3 +37,5 @@ index da65143ab..89c36e612 100644
|
|||
2.30.2
|
||||
|
||||
```
|
||||
|
||||
> [[applied|done]] --[[Joey]]
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 3"""
|
||||
date="2021-10-27T17:56:15Z"
|
||||
content="""
|
||||
Ah, making your script smart is reasonable enough.
|
||||
|
||||
I hope you might consider sharing the script in a tip?
|
||||
|
||||
Looking at your updated patch, you now leave the freezeContent call before it
|
||||
moves to the object file, and add another call afterwards. I think that would
|
||||
be objectionable if the user has a freeze hook that is expensive
|
||||
the run, because it would unncessarily run twice. I fairly well satisfied
|
||||
myself in comment #1 that it's ok to defer freezeContent to after it's
|
||||
moved the object file into place.
|
||||
|
||||
So, I've applied it, but modified to remove that earlier freezeContent.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue