Percona-Lab / mongodb_consistent_backup

A tool for performing consistent backups of MongoDB Clusters or Replica Sets
https://www.percona.com
Apache License 2.0
276 stars 81 forks source link

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

Closed corey-hammerton closed 5 years ago

corey-hammerton commented 5 years ago

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.

timvaillancourt commented 5 years ago

Thanks @corey-hammerton!