Commit f40d1f3
committed
config: simplify sharding.roles validation
Now there is the `validate_scope` function, so we can write less code
for validation of this kind. And we can move the validation to the lower
level (`sharding` -> `sharding.roles`), because the `validate`
annotation is now supported by the `schema.set()` constructor (see the
previous commit).
NO_DOC=no behavior changes except the config validation error message
NO_CHANGELOG=see NO_DOC1 parent 62c864d commit f40d1f3
File tree
4 files changed
+37
-54
lines changed- src/box/lua/config
- test/config-luatest
4 files changed
+37
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
1742 | | - | |
1743 | 1742 | | |
1744 | 1743 | | |
1745 | 1744 | | |
1746 | 1745 | | |
| 1746 | + | |
| 1747 | + | |
1747 | 1748 | | |
1748 | 1749 | | |
1749 | 1750 | | |
| |||
1811 | 1812 | | |
1812 | 1813 | | |
1813 | 1814 | | |
1814 | | - | |
1815 | | - | |
1816 | 1815 | | |
1817 | 1816 | | |
1818 | 1817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 341 | | |
365 | 342 | | |
366 | 343 | | |
| |||
397 | 374 | | |
398 | 375 | | |
399 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
400 | 397 | | |
401 | 398 | | |
402 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | 628 | | |
655 | 629 | | |
656 | 630 | | |
| |||
778 | 752 | | |
779 | 753 | | |
780 | 754 | | |
| 755 | + | |
781 | 756 | | |
782 | 757 | | |
783 | 758 | | |
| |||
1003 | 978 | | |
1004 | 979 | | |
1005 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
1006 | 993 | | |
1007 | 994 | | |
1008 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
1731 | | - | |
| 1730 | + | |
| 1731 | + | |
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
| |||
0 commit comments