Skip to content
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

kvclient: rename all Del operations to Delete #83799

Closed
wants to merge 2 commits into from

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Jul 5, 2022

The first commit is #83772.


This patch renames the following client methods on DB, Batch, and
Txn:

  • DelDelete
  • DelRangeDeleteRange
  • DelRangeUsingTombstoneDeleteRangeUsingTombstone

The actual gRPC and MVCC APIs all use the full Delete term for these
operations, with the client library being the odd one out. This can
often lead to inconsistent terminology being used by teams on either
side of the KV API boundary.

Release note: None

This removes the experimental markers for MVCC range tombstones, by
renaming functions, methods, and parameters to not include
`experimental`, as well as warning comments.

The changes are entirely mechanical.

Release note: None
@erikgrinaker erikgrinaker requested a review from a team as a code owner July 5, 2022 08:59
@erikgrinaker erikgrinaker requested a review from a team July 5, 2022 08:59
@erikgrinaker erikgrinaker requested a review from a team as a code owner July 5, 2022 08:59
@erikgrinaker erikgrinaker requested a review from a team July 5, 2022 08:59
@erikgrinaker erikgrinaker requested review from a team as code owners July 5, 2022 08:59
@erikgrinaker erikgrinaker requested a review from msbutler July 5, 2022 08:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@erikgrinaker erikgrinaker requested review from a team and removed request for a team and msbutler July 5, 2022 08:59
@erikgrinaker erikgrinaker self-assigned this Jul 5, 2022
This patch renames the following client methods on `DB`, `Batch`, and
`Txn`:

* `Del` → `Delete`
* `DelRange` → `DeleteRange`
* `DelRangeUsingTombstone` → `DeleteRangeUsingTombstone`

The actual gRPC and MVCC APIs all use the full `Delete` term for these
operations, with the client library being the odd one out. This can
often lead to inconsistent terminology being used by teams on either
side of the KV API boundary.

Release note: None
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice

@erikgrinaker
Copy link
Contributor Author

Meh, going to drop this since we're in stability.

@erikgrinaker erikgrinaker deleted the kv-del-delete branch September 3, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants