This repository was archived by the owner on Nov 10, 2023. It is now read-only.
Commit 95f1b0e
Fix DirectoryCleaner sometimes deleting buck-out/log/ subdirectories for the current run
Summary: After it decides it needs to delete stuff, `DirectoryCleaner` doesn't respect `LogFileHandler`'s minimum number of logs to keep setting. When log subdirectories become relatively large, e.g. 10MB when outputting verbose rulekey logs, even the log subdirectories for the current run can get deleted, leaving behind dangling `last_XXXcommand` symlinks. The fix is to consolidate the deletion check logic in one place.
Reviewed By: styurin
fbshipit-source-id: 8660a1b5f21 parent 856b782 commit 95f1b0e
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
0 commit comments