[MCOL-1642] Add SQL command that shows Primary Front-End MariaDB ColumnStore Module Created: 2018-08-13 Updated: 2018-11-14 Resolved: 2018-11-14 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MDB Plugin |
| Affects Version/s: | 1.2 |
| Fix Version/s: | 1.2.1 |
| Type: | New Feature | Priority: | Major |
| Reporter: | markus makela | Assignee: | Andrew Hutchings (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2018-19, 2018-20 | ||||||||
| Description |
|
A command that shows whether a UM is the primary one is needed for |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-09-17 ] | ||||
|
markus makela would you prefer this to be in the form of a UDF? | ||||
| Comment by markus makela [ 2018-09-24 ] | ||||
|
We just need access to it via the SQL interface. Anything else works for us but to keep it consistent, it could be a function. | ||||
| Comment by markus makela [ 2018-10-29 ] | ||||
|
I'll define the preliminary function name as mcsSystemPrimary and work based on the assumption that this function returns 1 if the system is the primary UM and 0 if it's not. | ||||
| Comment by David Hall (Inactive) [ 2018-10-29 ] | ||||
|
I will create the function as Markus describes. | ||||
| Comment by David Hall (Inactive) [ 2018-11-01 ] | ||||
|
To test, on any multi-UM system run:
--------------------
--------------------
--------------------
-------------------- | ||||
| Comment by Andrew Hutchings (Inactive) [ 2018-11-09 ] | ||||
|
Re-assigned to me to review since Ben is away | ||||
| Comment by markus makela [ 2018-11-13 ] | ||||
|
Where are the tests for columnstore located? | ||||
| Comment by markus makela [ 2018-11-13 ] | ||||
|
Manually tested and the function seems to work. It returns 1 on the primary UM and 0 on secondary. | ||||
| Comment by markus makela [ 2018-11-13 ] | ||||
|
Added a simple test case and assigned it for review. |