Commit 8b07cde
committed
storage: allow calling info when disabled
A storage may be marked as disabled, which previously made it difficult
to obtain status information from the component.
This patch allows calling vshard.storage.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.
Part of #565
@TarantoolBot document
Title: vshard: storage.info behavior change
vshard.storage.info()
This function can now be called even when the storage is disabled.
It now also returns a new boolean field is_enabled indicating whether
the component is currently enabled.1 parent b86421a commit 8b07cde
File tree
3 files changed
+49
-5
lines changed- test
- storage-luatest
- storage
- vshard/storage
3 files changed
+49
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| 343 | + | |
341 | 344 | | |
342 | 345 | | |
343 | 346 | | |
| |||
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
| 410 | + | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
| |||
436 | 441 | | |
437 | 442 | | |
438 | 443 | | |
| 444 | + | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
| 4012 | + | |
4012 | 4013 | | |
4013 | 4014 | | |
4014 | 4015 | | |
| |||
4028 | 4029 | | |
4029 | 4030 | | |
4030 | 4031 | | |
4031 | | - | |
| 4032 | + | |
4032 | 4033 | | |
4033 | 4034 | | |
4034 | 4035 | | |
| |||
4049 | 4050 | | |
4050 | 4051 | | |
4051 | 4052 | | |
4052 | | - | |
| 4053 | + | |
| 4054 | + | |
4053 | 4055 | | |
4054 | 4056 | | |
4055 | 4057 | | |
4056 | 4058 | | |
4057 | 4059 | | |
4058 | 4060 | | |
4059 | 4061 | | |
4060 | | - | |
| 4062 | + | |
4061 | 4063 | | |
4062 | | - | |
| 4064 | + | |
4063 | 4065 | | |
4064 | 4066 | | |
4065 | 4067 | | |
| |||
4241 | 4243 | | |
4242 | 4244 | | |
4243 | 4245 | | |
4244 | | - | |
| 4246 | + | |
4245 | 4247 | | |
4246 | 4248 | | |
4247 | 4249 | | |
| |||
0 commit comments