Commit 61faefe
gvfs-helper: retry when creating temp files
When we create temp files for downloading packs, we use a name
based on the current timestamp. There is no randomness in the
name, so we can have collisions in the same second.
Retry the temp pack names using a new "-<retry>" suffix to the
name before the ".temp".
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>1 parent 7c0292f commit 61faefe
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
| 1678 | + | |
1678 | 1679 | | |
1679 | 1680 | | |
1680 | 1681 | | |
| |||
1723 | 1724 | | |
1724 | 1725 | | |
1725 | 1726 | | |
| 1727 | + | |
1726 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
1727 | 1736 | | |
1728 | 1737 | | |
1729 | 1738 | | |
| |||
1745 | 1754 | | |
1746 | 1755 | | |
1747 | 1756 | | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1748 | 1764 | | |
1749 | 1765 | | |
1750 | 1766 | | |
| |||
0 commit comments