Skip to content

kv: use IsSingleHeartbeatTxnRequest method in admission control#77615

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/admissionHBMethod
Mar 11, 2022
Merged

kv: use IsSingleHeartbeatTxnRequest method in admission control#77615
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/admissionHBMethod

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Mar 10, 2022

This commit replaces the ad-hoc isSingleHeartbeatTxnRequest function
defined in kvserver/store.go and called in AdmitKVWork with a call
to the existing (*BatchRequest).IsSingleHeartbeatTxnRequest method.

Release note: None.

Release justification: Minor cleanup.

This commit replaces the ad-hoc `isSingleHeartbeatTxnRequest` function
defined in `kvserver/store.go` and called in `AdmitKVWork` with a call
to the existing `(*BatchRequest).IsSingleHeartbeatTxnRequest` method.

Release note: None.

Release justification: Minor cleanup.
@nvb nvb requested a review from sumeerbhola March 10, 2022 17:30
@nvb nvb requested a review from a team as a code owner March 10, 2022 17:30
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Mar 10, 2022

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 10, 2022

This PR was included in a batch that was canceled, it will be automatically retried

@craig craig bot merged commit 0fb2c0c into cockroachdb:master Mar 11, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 11, 2022

Build succeeded:

@nvb nvb deleted the nvanbenschoten/admissionHBMethod branch March 12, 2022 23:59
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.

4 participants