Commit 2372470
committed
state/metadata: get and expose cluster version
In cpp-driver, `cass_schema_meta_version` returns the output
of `release_version` column from `system.local` query executed on
current control connection.
I'm not entirely sure if we should expose such API. `ClusterState::get_nodes_info()`
would be enough to implement in on the cpp-driver side - we would just choose
the version of random/first node. Or maybe return an error if there is a version
mismatch (?). This can be discussed.
The main thing I hate about this commit is this ugly `fold` expression
in `query_peers_and_cluster_version`. I have no idea if there is any
cleaner solution to this.1 parent 757dbae commit 2372470
File tree
5 files changed
+50
-8
lines changed- scylla/src
- cluster
- policies/load_balancing
- routing/locator
5 files changed
+50
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
| |||
728 | 731 | | |
729 | 732 | | |
730 | 733 | | |
731 | | - | |
| 734 | + | |
732 | 735 | | |
733 | 736 | | |
734 | | - | |
| 737 | + | |
735 | 738 | | |
736 | 739 | | |
737 | 740 | | |
| |||
743 | 746 | | |
744 | 747 | | |
745 | 748 | | |
746 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
747 | 754 | | |
748 | 755 | | |
749 | 756 | | |
| |||
779 | 786 | | |
780 | 787 | | |
781 | 788 | | |
782 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
783 | 796 | | |
784 | 797 | | |
785 | 798 | | |
| |||
828 | 841 | | |
829 | 842 | | |
830 | 843 | | |
831 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
832 | 847 | | |
833 | 848 | | |
834 | 849 | | |
| |||
839 | 854 | | |
840 | 855 | | |
841 | 856 | | |
842 | | - | |
| 857 | + | |
| 858 | + | |
843 | 859 | | |
844 | 860 | | |
845 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
846 | 873 | | |
847 | | - | |
| 874 | + | |
848 | 875 | | |
849 | 876 | | |
850 | 877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
222 | 234 | | |
223 | 235 | | |
224 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
| 1447 | + | |
1447 | 1448 | | |
1448 | 1449 | | |
1449 | 1450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
0 commit comments