Skip to content

Oplog/Resolver/Resolver.py: De-duplicating code closing the pool #280

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 8, 2018
Merged

Oplog/Resolver/Resolver.py: De-duplicating code closing the pool #280

merged 1 commit into from
Oct 8, 2018

Conversation

corey-hammerton
Copy link
Contributor

The close() function is already being called at the end of the stage. The same code present in wait() is needless duplication. This commit removes the duplicated code from wait() and a slight change in the conditions in close().

It is unknown if this contributes to #277 but at the very least this reduces the attack surface.

The close() function is already being called at the end of the stage. The same code present in wait() is needless duplication. This commit removes the duplicated code from wait() and a slight change in the conditions in close().
@timvaillancourt timvaillancourt self-requested a review October 8, 2018 16:35
@timvaillancourt timvaillancourt merged commit eaad5d4 into Percona-Lab:master Oct 8, 2018
@timvaillancourt
Copy link
Contributor

Thanks @corey-hammerton!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants