-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
498d32f
commit a893caf
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a893caf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loop is clobbering the connection parameter, and with multiple connections, testing the wrong connection after the loop.
Given that the calling code is looping over the connections, I don't think there's any need to loop here, closing the passed connection should be enough.
I'm sorry I don't have a test case, just discovered this debugging why REUSE_DB=1 stopped working for us after upgrading.