-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To unify the naming of keywords #348
Comments
Update |
I don't think the remove host needs to be changed. Becase it isn't a table. refer mysql 8.0 |
Actually,
|
The |
Does MySQL have the concept of host ? maybe they are not the same @steppenwolfyuetong |
Yeah,mysql cluster has add hosts and remove hosts commands. when I When I did this function, I have studied it. If you change it to dropshost, how do you explain add hosts? |
For hosts, i think register/unregister is more reasonable. wdyt? @steppenwolfyuetong @darionyaphet |
I like it :) @dangleptr Do you have any suggestions? @dutor |
|
|
I don't see any specialness in Host, please enlighten me. For me, register/unregister have no different meanings with add/drop, neither better nor worse. |
Honestly I don't see big YES or NO here. I'll say let's use ADD/DROP HOST. Here are the reasons
|
Actually, in our system, the "add/remove hosts " command is not really add/remove a host into our cluster. It is just register/unregister it in whitelist. It will be used to filter hosts which send heart beat to Meta service. So i think the accurate command name for it should be "Register/Unregister host in whitelist" or remove the whitelist concept and trust our users (I vote for it now).
|
I think we can refer to the corresponding sql of the current popular database. |
First we need to make the concept clear. We DO NOT have a white list. What we have is called CLUSTER. The host in the cluster might not serve due to all kinds of reason. So what we want to do here is not creating a new host, we just want to add a new host to the cluster, or remove a host from the cluster. So I think here ADD and REGISTER means the same thing, and REMOVE/DROP/UNREGISTER have the same meaning as well. So, in order to keep the keywords simple, we can just use ADD/REMOVE, or ADD/DROP |
hi everyone, do you have any conclusions about the namings? |
Done |
Such as
OVERWRITE
withIF NOT EXISTS
DROP
instead ofREMOVE
,CHANGE
instead ofSET
FIND
withLOOKUP
The text was updated successfully, but these errors were encountered: