-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete the temporary install base if rename fails
The extraction process creates a directory $install_base.tmp.XXXX, extracts the necessary install data into it, then moves it to $install_base. Typically the rename can fail if multiple instances race to create $install_base, but it can also fail for less predictable reasons. In either case, clean up the temp directory to avoid leaving unused data behind. Note that we can still leave a partial directory behind if something goes wrong with extracting data into the temp dir. This'll be a little harder to clean up, or alternatively it might also be something we want to leave in place for inspection after the fact. Windows implementation will come separately. I should be able to throw something together from the existing windows UnlinkPath and DeleteAllUnder (windows_test_util), but I lack a windows machine to able to move quickly, so I want to make sure this first pass sticks. RELNOTES: None PiperOrigin-RevId: 292599669
- Loading branch information
1 parent
2d40d5c
commit 869bd70
Showing
6 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters