Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
RUBY-475 Changing read preference should unpin pool #175
@estolfo re: the tests, good idea!
I'm not sure just running the same query again would prove that we went through the correct logic. The pool could be unpinned and then pinned again and give the same result but for the wrong reason. We might need to use an expectation there to ensure the pinned_pool method is called and that the unpin method is not called.