Commit d373701
committed
router: allow calling info when disabled
A router may be marked as disabled, which previously made it difficult
to obtain status information from the component.
This patch allows calling vshard.router.info even when the component
is disabled. The function now also returns a new boolean field
is_enabled indicating whether the component is currently enabled.
Follow-up #565
@TarantoolBot document
Title: vshard: router.info behavior change
vshard.router.info()
This function can now be called even when the router is disabled.
It now also returns a new boolean field is_enabled indicating
whether the component is currently enabled.1 parent b2bcf17 commit d373701
File tree
6 files changed
+49
-6
lines changed- test
- failover
- rebalancer
- router-luatest
- router
- vshard/router
6 files changed
+49
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
384 | 386 | | |
385 | 387 | | |
386 | 388 | | |
| 389 | + | |
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
1076 | 1077 | | |
1077 | 1078 | | |
1078 | 1079 | | |
| 1080 | + | |
1079 | 1081 | | |
1080 | 1082 | | |
1081 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1546 | 1546 | | |
1547 | 1547 | | |
1548 | 1548 | | |
| 1549 | + | |
1549 | 1550 | | |
1550 | 1551 | | |
1551 | 1552 | | |
| |||
1661 | 1662 | | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | | - | |
| 1665 | + | |
1665 | 1666 | | |
1666 | 1667 | | |
1667 | 1668 | | |
1668 | 1669 | | |
1669 | 1670 | | |
1670 | 1671 | | |
1671 | 1672 | | |
1672 | | - | |
| 1673 | + | |
1673 | 1674 | | |
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
1677 | 1678 | | |
1678 | | - | |
| 1679 | + | |
| 1680 | + | |
1679 | 1681 | | |
1680 | 1682 | | |
1681 | 1683 | | |
1682 | 1684 | | |
1683 | 1685 | | |
1684 | 1686 | | |
1685 | 1687 | | |
1686 | | - | |
| 1688 | + | |
1687 | 1689 | | |
1688 | | - | |
| 1690 | + | |
1689 | 1691 | | |
1690 | 1692 | | |
1691 | 1693 | | |
| |||
1709 | 1711 | | |
1710 | 1712 | | |
1711 | 1713 | | |
1712 | | - | |
| 1714 | + | |
1713 | 1715 | | |
1714 | 1716 | | |
1715 | 1717 | | |
| |||
0 commit comments