Commit e2c540b
committed
util: create but do not start reloadable fiber
This commit makes the whole vshard use `reloadable_fiber_new` instead of
the `reloadable_fiber_create`, from now on reloadable fiber is not
started, just created. This allows all functions not to yield, when
creating such fibers.
The initial motivation was `log_ratelimit` module, where we cannot yield
during creation of the flush fiber, since otherwise it may happen, that
several logs through limiters from different fibers may create several
flush fibers.
It was decided to apply that strategy everywhere, firstly, for the sake of
consistency and, secondly, in order not to repeat the same error in the
future - using `new` instead of `create` will protect us from creating
duplicate reloadable fibers from different fibers.
Needed for #606
NO_DOC=internal1 parent f979f63 commit e2c540b
File tree
6 files changed
+19
-21
lines changed- test/unit
- vshard
- router
- storage
6 files changed
+19
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3085 | 3085 | | |
3086 | 3086 | | |
3087 | 3087 | | |
3088 | | - | |
3089 | | - | |
3090 | | - | |
| 3088 | + | |
| 3089 | + | |
3091 | 3090 | | |
3092 | 3091 | | |
3093 | 3092 | | |
| |||
3381 | 3380 | | |
3382 | 3381 | | |
3383 | 3382 | | |
3384 | | - | |
| 3383 | + | |
3385 | 3384 | | |
3386 | 3385 | | |
3387 | 3386 | | |
3388 | | - | |
| 3387 | + | |
3389 | 3388 | | |
3390 | 3389 | | |
3391 | 3390 | | |
| |||
3494 | 3493 | | |
3495 | 3494 | | |
3496 | 3495 | | |
3497 | | - | |
| 3496 | + | |
3498 | 3497 | | |
3499 | 3498 | | |
3500 | 3499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | | - | |
| 485 | + | |
487 | 486 | | |
488 | 487 | | |
489 | 488 | | |
| |||
0 commit comments