Repository navigation
Commit fc09cb9
Stop the pool optimizer in stopWorkers() (#518)
Summary:
`stopWorkers()` stopped every background worker except the pool optimizer, so the optimizer could still resize pools while `shutDown()` was serializing the cache. Now `stopWorkers()` stops it too.
Pull Request resolved: #518
Test Plan:
- New `SimplePoolOptimizationTest.StopWorkersStopsPoolOptimizer` waits for the optimizer to run, calls `stopWorkers()` and checks that the strategy is not called again; it fails without the fix.
- Full ctest passes.
Reviewed By: rlyerly
Differential Revision: D131236874
Pulled By: AlnisM
fbshipit-source-id: 346ccce2f92fabf522e11bbb3d2654f530dfa8981 parent af7c1fe commit fc09cb9
3 files changed
Lines changed: 36 additions & 0 deletions
File tree
- cachelib/allocator
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6359 | 6359 | | |
6360 | 6360 | | |
6361 | 6361 | | |
| 6362 | + | |
6362 | 6363 | | |
6363 | 6364 | | |
6364 | 6365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
88 | 119 | | |
89 | 120 | | |
90 | 121 | | |
| |||
0 commit comments