Commit c4b78d9
Add shared garbage collection lock for dotslash execution
Summary:
We want to add garbage collection for dotslash cache (discussion [post](https://fb.workplace.com/groups/dotslash.users/permalink/2064356387419058/)). For safe removal we have to ensure artifact not being used before removing them
Introducing a shared gc file lock that multiple executors can acquire
Later GC process has to acquire the exclusive lock on the same file to be able to clean up the artifact
Without any GC process running this should have no impact on execution of dotslash so this diff itself should not introduce blocking/deadlock
GC testing will be in next diff
Reviewed By: dtolnay
Differential Revision: D73410163
fbshipit-source-id: 9c130a090c8ac1836892a07be42281687a4bad171 parent 3345dc9 commit c4b78d9
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
57 | 83 | | |
58 | 84 | | |
59 | 85 | | |
| |||
0 commit comments