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

storage: remove a couple papercuts in baseQueue/scanner #37943

Merged
merged 2 commits into from
Jun 3, 2019

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented May 30, 2019

See individual commits for details. Found while trying to grok the queue stuff. Both of these tripped me up for a minute -- "why is this necessary?" -- and in both cases I had to convince myself it wasn't.

danhhz added 2 commits May 30, 2019 11:36
There is currently no real reason to call addInternal if it's not
supposed to do anything. I tracked this parameter back to 24a3f23,
which doesn't seem to have a principled reason for introducing it.

Release note: None
This RunTask wasn't really getting us anything. RunTask will tell us
when the stopper is quiescing, but waitAndProcess already checks the
stopper for ShouldStop, which seems sufficient. It also blocks the
shutdown (on the mutex lock/unlock?), but this whole method is already
in a RunWorker, which does the same thing.

Release note: None
@danhhz danhhz requested review from tbg, nvanbenschoten and a team May 30, 2019 19:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

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

@danhhz
Copy link
Contributor Author

danhhz commented Jun 3, 2019

TFTR!

bors r=tbg

craig bot pushed a commit that referenced this pull request Jun 3, 2019
37943: storage: remove a couple papercuts in baseQueue/scanner r=tbg a=danhhz

See individual commits for details. Found while trying to grok the queue stuff. Both of these tripped me up for a minute -- "why is this necessary?" -- and in both cases I had to convince myself it wasn't.

Co-authored-by: Daniel Harrison <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jun 3, 2019

Build succeeded

@craig craig bot merged commit 6d0dee9 into cockroachdb:master Jun 3, 2019
@danhhz danhhz deleted the cleanup_queue branch June 5, 2019 15:17
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