-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support upsert #53
Support upsert #53
Conversation
@smellthemoon Please associate the related issue to the body of your Pull Request. (eg. “issue: #6534”) |
1fec8e9
to
84b6536
Compare
84b6536
to
eab490f
Compare
eab490f
to
8dcc591
Compare
8dcc591
to
4d5d54e
Compare
/hold |
4d5d54e
to
c48f2fe
Compare
c48f2fe
to
00b18cb
Compare
/unhold |
common.MsgBase base = 1; | ||
string db_name = 2; | ||
string collection_name = 3; | ||
string partition_name = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the semantics of upsert when the partition parameter is specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It follows the partition semantic logic of delete and insert.
proto/common.proto
Outdated
PrivilegeSelectOwnership = 22; | ||
PrivilegeManageOwnership = 23; | ||
PrivilegeSelectUser = 24; | ||
PrivilegeUpsert = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define PribilegeUpsert as 25 instead of 10.
Do not modify previously defined value.
Signed-off-by: lixinguo <[email protected]>
00b18cb
to
3a7a4fb
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: czs007, smellthemoon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: lixinguo [email protected]
#54