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

jobs: make Job.id an int64 instead of *int64 #60965

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

thoszhang
Copy link
Contributor

@thoszhang thoszhang commented Feb 23, 2021

It's no longer valid to create in-memory Jobs without IDs, so there's
no reason to have the id field be a pointer anymore.

This commit should also banish the common mistake of logging a *int64
using %d when logging the job ID.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@thoszhang thoszhang force-pushed the job-id-field branch 3 times, most recently from affa3e6 to 08f2446 Compare February 23, 2021 22:08
@thoszhang thoszhang marked this pull request as ready for review February 23, 2021 22:09
@thoszhang thoszhang requested a review from a team February 23, 2021 22:09
@thoszhang thoszhang requested a review from a team as a code owner February 23, 2021 22:09
@thoszhang thoszhang requested review from dt and ajwerner and removed request for a team February 23, 2021 22:09
It's no longer valid to create in-memory `Job`s without IDs, so there's
no reason to have the `id` field be a pointer anymore.

This commit should also banish the common mistake of logging a `*int64`
using `%d` when logging the job ID.

Release note: None
Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm_strong:

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

@thoszhang
Copy link
Contributor Author

TFTR

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 24, 2021

Build succeeded:

@craig craig bot merged commit 52ab049 into cockroachdb:master Feb 24, 2021
@thoszhang thoszhang deleted the job-id-field branch February 24, 2021 15:33
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