Skip to content

kv: implement BatchRequest methods on pointer receivers#116696

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/batchReqPtr
Jan 3, 2024
Merged

kv: implement BatchRequest methods on pointer receivers#116696
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/batchReqPtr

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Dec 18, 2023

The commit changes the receiver type of the BatchRequest methods to pointer receivers. This allows *BatchRequest to implement the redact.SafeFormatter interface, which is helpful now that (as of e822649) BatchRequest is always passed around by pointer.

Informs #114601.
Release note: None

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Dec 18, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@nvb nvb force-pushed the nvanbenschoten/batchReqPtr branch 2 times, most recently from be66cb6 to 0aeec2d Compare December 18, 2023 23:28
@nvb nvb marked this pull request as ready for review January 2, 2024 16:03
@nvb nvb requested a review from a team as a code owner January 2, 2024 16:03
@nvb nvb requested review from a team, arulajmani and lyang24 January 2, 2024 16:03
Copy link
Copy Markdown
Contributor

@lyang24 lyang24 left a comment

Choose a reason for hiding this comment

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

Thank you, I pulled the branch and tested redact.SafeFormatter conversion lgtm!

The commit changes the receiver type of the BatchRequest methods to
pointer receivers. This allows *BatchRequest to implement the
redact.SafeFormatter interface, which is helpful now that (as of
e822649) BatchRequest is always passed around by pointer.

Release note: None
@nvb nvb force-pushed the nvanbenschoten/batchReqPtr branch from 0aeec2d to 2f7bf07 Compare January 3, 2024 04:05
@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Jan 3, 2024

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 3, 2024

Build succeeded:

@craig craig bot merged commit a8d8066 into cockroachdb:master Jan 3, 2024
@nvb nvb deleted the nvanbenschoten/batchReqPtr branch January 9, 2024 19:02
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